RSS Forums RSS
Please support our C++ advertiser: Programming Forums

Help with rolling dice problem

Join Date: Jul 2008
Posts: 931
Reputation: ArkM is just really nice ArkM is just really nice ArkM is just really nice ArkM is just really nice ArkM is just really nice 
Rep Power: 6
Solved Threads: 129
ArkM's Avatar
ArkM ArkM is offline Offline
Posting Shark

Re: Help with rolling dice problem

  #9  
Jul 26th, 2008
Now I think it's legal to use [icode]1 + rand() % 6[/code] (if you have a proof for uniform distribution of mod 6 ).
I'm accustomed to good pseudorandom generators with range 0..1...
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:58 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC