The stupid question is the question not asked | |
PerlMonks |
Re: Random numbers are not random enough on Windowsby GrandFather (Saint) |
on Oct 28, 2009 at 10:19 UTC ( [id://803633]=note: print w/replies, xml ) | Need Help?? |
Perl's rand uses the C run time rand provided by the compiler. Often such pseudo-random number generators perform very poorly and the Microsoft one provided by the compiler used to build ActiveState's Perl offering is a case in point. However, it's a problem that is easily fixed. Just use Math::Random::MT qw(srand rand); and the problem goes away regardless of how your Perl was built. True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|