# Maximum PC

 It is currently Sat Aug 23, 2014 3:00 am

 All times are UTC - 8 hours

 Page 1 of 1 [ 5 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Help me debug this small program.Posted: Wed Jul 15, 2009 10:28 am
 Northwood

Joined: Sun Jul 15, 2007 6:37 pm
Posts: 2261
Code:
Code Removed for personal reasons.

I've written the code and I got lost lol. Yes, I am writing this without Object etc.

Last edited by Dwood15 on Sat Jul 18, 2009 7:21 pm, edited 1 time in total.

Top

 Post subject: Posted: Wed Jul 15, 2009 12:26 pm
 SON OF A GUN

Joined: Mon Nov 01, 2004 5:41 am
Posts: 11605
What does it do? What does it not do? What is it supposed to do?

Top

 Post subject: Posted: Thu Jul 16, 2009 9:25 am
 Northwood

Joined: Sun Jul 15, 2007 6:37 pm
Posts: 2261
CrashTECH wrote:
What does it do? What does it not do? What is it supposed to do?

Oh, yeah, sorry about that part.

It's simply a Random number generator based on dice with 11 sides.

It's supposed to display the probability of 2s, 3s, 4s, etc. based on X times the dice were rolled (I typically choose 100 rolls)

My problems are getting the probabilities to be displayed accurately.

Ex: of desired output:

2s: .222
3s: .1123
On down to 22.

Top

 Post subject: Posted: Thu Jul 16, 2009 9:58 am
 SON OF A GUN

Joined: Mon Nov 01, 2004 5:41 am
Posts: 11605
what out put do you get?

Top

 Post subject: Posted: Thu Jul 16, 2009 10:33 am
 Northwood

Joined: Sun Jul 15, 2007 6:37 pm
Posts: 2261
Sums Probabilities
0s 0.0
1s 0.0
2s 0.0
3s 0.01
4s 0.02
5s 0.05
6s 0.09
7s 0.04
8s 0.02

On and on and on.

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 5 posts ]

 All times are UTC - 8 hours

#### Who is online

Users browsing this forum: No registered users and 2 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ Maximum FAQs    Forum Rules, Posting Guidelines & Announcements    The Good, The Bad & The Banned    FAQs Help/Do It Yourself    PC Building Lab    The Help Desk    PC Modding    Education & Certification Hardware    Nuts & Bolts    Portable Talk    Appraisals, Deals & Bargains (oh my!) OS/Software/Programming    Windows Parlor    Alt.OS.Abode    Games Arena    Programmers' Paradise Networking/Internet    Internet Truckstop    Network Nook In/Out    Magazine and Book Feedback    Forum & Website Feedback    Dog Pound Team Maximum PC Folding at Home    Team Maximum PC - Folding at Home - FIND CURES TO DISEASES    Team MPC - Folding Gauntlets