← UC-332: Every Card Is Random. The Deck Isn’t.
Problem playground

The Thorp Shuffle

In 1973 Edward Thorp, the mathematician who beat blackjack, described a shuffle you can do by hand. How many times you must repeat it before the deck is truly random was called the longest-standing open problem in card shuffling.

1 · Shuffle it yourself

Cut eight cards into two halves. Line up the halves, so each card has a partner. For every pair, flip a coin: heads, the left card drops first; tails, the right card does. The pairs, in order, make the new deck.

Deck before
Pairs and coins
Deck after

Each shuffle uses four coin flips, so it can produce only sixteen different results. That limit is the whole problem: eight cards can be arranged in 40,320 ways, and a few shuffles cannot reach most of them.

2 · One card versus the whole deck

This page now follows every possible outcome at once: all 40,320 orders of eight cards, and exactly how likely each is after each shuffle. Slide through the shuffles and compare two questions. Is any one card random yet? Is the deck?

One cardWhole deck0 = perfectly random · 1 = not shuffled at all
–one card from random
–whole deck from random
–orders of 40,320 possible yet
Computing all 40,320 orders…

Exact, not simulated: the page tracks the probability of every order after every shuffle. “From random” is total variation distance, the measure the paper uses. One card is the worst of the eight cards on its own. After three shuffles every card is perfectly random by itself, while most orders of the deck are still impossible.

3 · How the bounds grew

For a deck of 2d cards, each result below says how many shuffles are enough. Choose how many times the deck can be halved, and compare.

YearWhoConstantFor this dOn a log scale

Orders of growth only. The 2005–2009 bounds hold up to constant factors their papers do not state, so the numbers here compare shapes, not real shuffle counts. The 2026 bound is the first that grows only in proportion to d. With its stated constant of 1,600 it falls below d3 only once d passes 40 — a deck of more than a trillion cards. The lower bound says no method can do better than about 2d.

4 · What is claimed, and what is checked

StatementStatus
The number of shuffles needed grows in proportion to d (main paper, 14 pages)Checked by machine, in Lean
1,600d shuffles are enough, as decks grow without limitChecked; “not a proposed sharp constant”
About 2d shuffles are necessarySimple counting argument
24d shuffles are enough (anonymous draft, October 10)Not reviewed; “local draft, not yet published”
The proof as a whole, across twelve manuscripts and 683 pagesNo specialist review found

Fifty-three years

  1. 1962Thorp’s Beat the Dealer shows card counting can overcome the house edge in blackjack.
  2. 1973Thorp describes his shuffle while studying nonrandom shuffling in the game of Faro.
  3. 1992Bayer and Diaconis answer the question precisely for the ordinary riffle shuffle.
  4. 2005Ben Morris gives the first real bound, quoting Diaconis: the “longest-standing open card shuffling problem.”
  5. 2009Morris reaches d3. With Rogaway and Stegers, he builds encryption for card and social-security numbers on the shuffle.
  6. Oct 6, 2026OpenAI releases a machine-checked proof that the right growth is proportional to d.
  7. Oct 10, 2026An anonymous draft re-tunes the constant from 1,600 to 24. No other public response found.
A companion visual to UC-332 · Every Card Is Random. The Deck Isn’t., a StratIQX case study. It illustrates the subject; it is not part of the case’s scored analysis. The eight-card figures are exact; they illustrate the question and cannot test an asymptotic theorem.
Sources: E. O. Thorp, “Nonrandom Shuffling with Applications to the Game of Faro” (1973); B. Morris, arXiv:math/0507307 (2005) and arXiv:0912.2759 (2009); Morris, Rogaway and Stegers, CRYPTO 2009; OpenAI, “Optimal-order mixing of the Thorp shuffle” and Lean scope note (2026, unreviewed); draft remark R5.
See also: The Butterfly and the Fork, The Brick Factory, The Fastest Way to Multiply and Colouring the Plane, from the same release.