News for hackers. Stuff that matters.
Re:I analyzed shuffling in a million games of MtG Arena by yorwba on Sunday January 15, 2023 @07:49AM (#34389007)
Info why it doesn't work: the smallest array for which it fails has 3 elements. When you start with a sorted array, iterate through each element and move it to one of the 3 positions with equal probability, there are 3³ = 27 possible move sequences, each with probability 1/27, but only 3! = 6 possible outcomes (permutations of the array). Because 6 doesn't divide 27, there must be some outcomes that are generated by more move sequences than others and hence occur more often.

There are no comments on this comment yet.