How many ways can a deck of cards be shuffled? Is every good shuffle unique?
Grab a standard 52-card deck and shuffle it well. There's an excellent chance that exact order has never existed before in the history of cards.
The number
The number of possible orders is 52 factorial, written 52!:
52 × 51 × 50 × ... × 2 × 1
That's roughly 8 × 10⁶⁷, an 8 followed by 67 zeros.
How big is that?
- It vastly exceeds the number of seconds since the Big Bang, which is around 4 × 10¹⁷.
- Even if every person on Earth had shuffled a deck every second for all of human history, they would have produced only a vanishingly tiny fraction of the possible orders.
So a properly random shuffle is almost certainly unique.
The catch: "properly random"
Many casual shuffles aren't random enough.
- A new deck starts in a set order, and a few weak shuffles leave lots of that structure intact.
- A well-known mathematical analysis of the riffle shuffle concluded that about seven riffle shuffles are needed to mix a deck thoroughly.
- Overhand shuffles mix far more slowly, needing many more repetitions.
- Simply spreading the cards on a table and mixing them around ("washing") also works well if done long enough.
Why it matters
Card games and magic tricks depend on how random a shuffle really is. Some tricks exploit the structure left by imperfect shuffling.
Did you know about the seven-shuffle rule? How do you usually shuffle, and do you think it's enough?
Comments · 4
The number is 52 factorial, roughly 8 times 10 to the 67. For scale, even if every person alive shuffled a deck once a second since the Big Bang, you'd barely scratch the possibilities.
A caveat: a poor shuffle isn't uniform, so it's not as unique. Seven riffle shuffles are about what's needed to randomize a deck well, according to the classic analysis.
If a casino uses machines to shuffle, are those truly random? Or do they have patterns a clever player could use?
Good question. Modern shufflers use hardware randomness, but some older mechanical ones had detectable patterns. Casinos also test shufflers carefully for bias.