Re: random number generator
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 09, 2004
- 479 views
On Thu, 08 Jul 2004 09:12:35 -0700, Jules Davy <guest at RapidEuphoria.com> wrote: >I'm writing a program to test roulette systems (million+ "spins") and >was wondering whether eu's rand() function is adequate for this or should I use > >a more advanced RNG such as the mersenne twister in the archive? Erm, I can safely say that I learnt almost everything I know about roulette from watching James Bond movies. Not quite sure how you expect anyone to guess whether something is adequate for a program which has not yet been written. (sorry if that sounds a bit harsh, it wasn't meant to be) It may be that rand() is ok, afaik, all reports so far indicate it would be fine for a million+ ints in the range 0..33[?]. You may as well try that mersenne thing and/or the new getRandInt() in win32lib, and/or any other you can find, in the fullness of time, but it sounds like you should go with rand() for now. Regards, Pete