Shuffling Is Harder Than It Looks: A Million Runs of the One-Line Shuffle
The shuffle everyone writes — sorting with a random comparator — is biased, and not slightly. A million measured runs show eight of the twenty-four orderings turning up twice as often as the other sixteen.
Lena Hoffmann · 13 min read