[computer-go] C++ random numbers
Tom Cooper
t.cooper at firenet.uk.net
Fri Aug 11 11:22:51 PDT 2006
Just a warning though, I believe the early editions
of Numerical Recipes contained some dodgy pseudo-random
number generators.
When I was feeling particularly paranoid, I once used
the Mersienne twister XORed with a repeating cycle of
a few Megs of physical random noise (I guess Johnson noise)
that I found on the web.
At 02:01 09/08/2006, you wrote:
>If you really want a decent generator, look in Knuth.
>I do MC in physics, where the quality of the generator
>is paramount, and you can get bad results with bad
>generators. I have had good results with the "shuffle"
>technique, which requires 2 random generations to
>get one random number.
>
>There is also a good discussion in the Numerical
>Recipes books, with code for several generators,
>including a very good one that requires 3 steps:
>high order, low order, and shuffle.
>
>Cheers,
>David
More information about the computer-go
mailing list