Skip to content

PRO TIP Block youtube.com at the DNS level โ€” Pi-hole, NextDNS or your hosts file โ€” but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

How to SHUFFLE AN ARRAY in 4 minutes! ๐Ÿ”€

31K views on YouTube

“The Fisherโ€“Yates shuffle is an algorithm for shuffling a finite sequence. The algorithm takes a list of all the elements of the sequence, and continually determines the next element in the shuffled sequence by randomly drawing an element from the list until no elements remain. The algorithm produces an unbiased permutation: every permutation is equally likely. The modern version of the algorithm takes time proportional to the number of items being shuffled and shuffles them in place.”

– Eberl, Manuel (2016). “Fisherโ€“Yates shuffle”. Archive of Formal Proofs. Retrieved 28 September 2023.