Skip to content

jwseph/perfect-shuffle

Repository files navigation

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

About

Shuffle a deck so that it is mathematically random

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published