Sampling & Data
The Math of Shuffling & Unique Draws: Why Most Random Code Is Biased (Fisher-Yates vs Naive Sorting)
Understand non-repeating sampling, mathematical proof of why sort(() => Math.random() - 0.5) is broken, and how to draw unbiased raffle and lottery sets.
Read guide →