laziness, impatience, and hubris | |
PerlMonks |
Re: is rand random enough to simulate dice rolls?by jo37 (Deacon) |
on Jan 03, 2021 at 14:56 UTC ( [id://11126203]=note: print w/replies, xml ) | Need Help?? |
For random numbers that need not be cryptographically secure, but shall be "a bit better" than rand I usually use the Mersenne Twister. It has a period of 2^19937 - 1 and can be seeded with up to 624 long integers. Greetings,
In Section
Seekers of Perl Wisdom
|
|