go ahead... be a heretic | |
PerlMonks |
Re^2: A bad shuffleby Anonymous Monk |
on Mar 21, 2005 at 10:12 UTC ( [id://441163]=note: print w/replies, xml ) | Need Help?? |
Shuffling is a classical problem in the algorithms literature. I've encountered the problem many times, and a "fair shuffle" always means that any permutation of the input list has an equal chance of being the outcome. With other words, there's no difference between "fair shuffle" and "uniformly distributed selection over permutations".
Only you like to play word games, and start redefining well known terms.
In Section
Meditations
|
|