View Single Post
Join Date: May 2006
Posts: 3,114
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 281
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: Help with rolling dice problem

 
0
  #7
Jul 26th, 2008
Originally Posted by cmatos15 View Post
So here's what I have so far, I know it's not correct but I think im on the right path, can someone let me know whats wrong...
Actually, it's your job to tell us what's wrong, not let us try to figure out what the program is doing and what we think is wrong...

Originally Posted by ArkM View Post
Please, start IDE, open your project, click on rand() call in the source then press sacramental key F1. Read about returned value range (RAND_MAX macros) then take a piece of paper and a pencil and perform a simple calculations: how to get a numbers from 1 to 6...
Maybe you need to explain what's wrong with his calculation. Seems to be fine to me.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote