Unbiased Shuffle Algorithm
Thursday, November 29th, 2007I have recently been fascinated by the mathematics of shuffling, or randomly reassigning values to different indices within an array of elements. Wikipedia has a good article about the Fisher-Yates shuffle, which, "properly implemented, ... is unbiased, so that every permutation is equally likely." Here is a C# implementation of ...