Think about Loose Coupling | |
PerlMonks |
Re^3: Functional shuffleby blokhead (Monsignor) |
on Apr 02, 2005 at 16:40 UTC ( [id://444392]=note: print w/replies, xml ) | Need Help?? |
Did you compare the code above to the faulty code in your link? The code above is indeed a fair shuffle. Sort-based shuffles that use rand in the comparison block are the ones that don't work. See Re: Is this a fair shuffle?.
blokhead
In Section
Seekers of Perl Wisdom
|
|