Maths

Why seven shuffles are enough to mix a deck of cards

30seconds
The 30-second version

A 52-card deck can be put in about 8 × 10^67 different orders, yet a few quick shuffles leave a lot of the old order behind.

In 1992 Dave Bayer and Persi Diaconis worked out exactly how random a deck is after each riffle shuffle. After four shuffles the deck is still easy to tell apart from a random one; then randomness arrives almost all at once. Seven riffles is the point where a deck finally looks close to random. Shuffle a virtual deck yourself and watch the pattern dissolve.

Deep dive · 4 min

More in Maths

View all →
Why a treatment can win in every group and still lose overall: Simpson's paradox Treatment B beats Treatment A overall, yet A wins for small stones and for large stones. That is Simpson's paradox, and it is real data from a kidney-stone… Maths4 min read Why no walk can cross all seven bridges of Königsberg once: Euler's odd-places rule Seven bridges, two islands, two river banks: in 1700s Königsberg nobody could find a walk crossing each bridge exactly once. Euler didn't search harder, he… Maths4 min read Why sunflower seeds never leave gaps: the golden angle and the Fibonacci spirals Sunflower seeds are not placed in spirals on purpose. Each new seed turns a fixed angle from the last, and only one angle, about 137.5 degrees, leaves no bare… Maths4 min read Why random dice rolls draw a perfect fractal: the chaos game and the Sierpiński triangle Pick three dots, then keep jumping halfway towards a randomly chosen one. It sounds like it should leave a grey smudge, but after a few thousand jumps a… Maths3 min read Why a dropped stick can find π: Buffon's needle Drop a stick on a floor of planks and count how often it lands across a seam. The count secretly contains π: for a needle as long as the plank width, the… Maths4 min read Why 23 people are enough for a shared birthday: counting pairs, not people Put 23 people in a room and the chance that two share a birthday is already 51%. It feels far too low a number, because we picture one person matching our… Maths3 min read