Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 500 Bytes

README.md

File metadata and controls

7 lines (4 loc) · 500 Bytes

The Perfect Shuffle

Ever wondered what method of shuffling a deck guarantees the most randomness? According to a Numberphile video, you should riffle shuffle seven times to make a deck almost completely random. But this doesn't achieve perfect randomness.

This article will guide you through shuffling a deck with perfect randomness using the Fisher–Yates shuffle, which is mathematically guaranteed to be random.

Read more