Fisher-Yates Shuffle: Unbiased Random Permutation
Shuffling an array seems trivial. Loop through, swap things around randomly, done. This intuition has led countless developers to write broken shuffle implementations that look correct but produce…
Read more →