in reply to
Re^2: Functional shuffle
in thread
Functional shuffle
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
Comment on
Re^3: Functional shuffle
In Section
Seekers of Perl Wisdom