![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^2: What I am missing hereby Marshall (Canon) |
on Mar 21, 2012 at 04:01 UTC ( #960714=note: print w/replies, xml ) | Need Help?? |
This is slightly different that the fisher_yates_shuffle algorithm. At the root of the matter, rand() is not random and has a odd,even,odd,even bias - or at least common implementations do. There are better "pseudo random number generators" than rand(). They are much more computationally expensive and I think outside of the scope of this thread.
In Section
Seekers of Perl Wisdom
|
|