No such thing as a small change | |
PerlMonks |
Re: Non-Repetitive Random Numbersby pemungkah (Priest) |
on Apr 06, 2013 at 10:22 UTC ( [id://1027275]=note: print w/replies, xml ) | Need Help?? |
This survey of pseudorandom number generators has recommendations. There are many with a wide range of characteristics.
If you need a nice uniform distribution, the Mersenne Twister implementation provided by Math-Random-MT-Perl-1.1 should work. As the notes say, "The algorithm is characterised by a very uniform distribution but is not cryptographically secure."
In Section
Seekers of Perl Wisdom
|
|