in reply to Re: Functional shuffle
in thread Functional shuffle
Sort-based shuffles like this are not good shuffles. You do not get all N! permutations with equal probability. The Fisher-Yates shuffle can do it; this one does not. The discussion under When the Best Solution Isn't and under other recent shuffle threads (like Is this a fair shuffle?) explains why.
In Section
Seekers of Perl Wisdom