At the Lumiere Place Casino in St. Louis, a man held his phone up to a slot machine and recorded the spins. He played a few rounds, won some, lost some, and walked away. Five minutes later he was back, and this time he was winning on spin after spin. After less than an hour, he walked out roughly $10,000 richer. The same scene played out at least ten times across casinos in Missouri, Illinois, and California, and when investigators finally studied the security footage closely, they noticed something strange: the winning players would hover a hand over the button, wait, and then press at oddly specific moments, as if they already knew what was coming. It turned out they did. And the reason they could is a story that runs from the first nuclear weapons to the security of your bank account.
How a solitaire game in a hospital bed changed physics forever
In January 1946, the mathematician Stanislaw Ulam woke up unable to speak. Encephalitis had nearly killed him, and his recovery left him with weeks of enforced stillness and a lot of card games. Lying in a hospital bed, he started wondering about the actual odds of winning a game of solitaire. A deck of 52 cards can be arranged in 52 factorial ways, roughly eight times ten to the power of 67, and every arrangement plays out differently. The analytical math was hopeless. So he tried something simpler: lay out a hundred games and count the wins. If you win eight times, your odds are probably around eight percent.
Ulam realized the same logic could model neutrons inside a nuclear bomb. Instead of calculating every possible particle path through trillions of interactions, you simulate a handful using random numbers to decide each outcome at each step. Run enough trials and the aggregate behavior emerges. His colleague John von Neumann saw immediately that the ENIAC, one of the world’s first electronic computers, could follow 100 neutrons and their descendants through thousands of collisions in around five hours. The approach was named the Monte Carlo Method, after the Monaco casino where Ulam’s uncle liked to gamble.
The only problem: the ENIAC could not roll a die. Von Neumann designed a workaround, squaring a seed number and extracting the middle digits to produce the next number in the sequence. It looked random until, starting from 2,137, the sequence reliably fell into a loop of just four numbers after 43 steps. As von Neumann himself admitted, ‘anyone who considers arithmetical methods of producing random digits is of course in a state of sin.’
From Minecraft diamonds to casino fraud
These so-called pseudorandom number generators, or LCGs, spread everywhere. Java adopted one whose sequence runs over 281 trillion steps before repeating. Minecraft used it for years to place resources like diamonds and clay. Matthew Bolan, a third-year mathematics PhD student at the University of Toronto, demonstrated exactly why that was a problem. Because the game’s diamond and clay seeds differed by just three before going through the same generator, the shared unknown part cancels out when you compare their positions. Find the clay patch, do the math, and the diamond ore is directly below a spot three blocks away in the positive Z direction. When the diamond vein appeared right where the calculation predicted, Bolan’s summary was immediate: ‘Let’s go.’
The casino gamblers in Missouri were exploiting the same structural weakness, only in a more sophisticated machine. The slot manufacturer used a Mersenne Twister, an algorithm that fills a table of 624 numbers, performs a ‘twist’ combining binary digits across the table, and produces a sequence so long its repeat cycle has more than 6,000 digits. A team in St. Petersburg, led by a hacker known only as Alex, got hold of decommissioned machines after Russia banned most gambling in 2009 and reverse-engineered the software. When their operatives in US casinos streamed phone footage of live spins back to Russia, the team could compare those spins against their own machines and time the next winning moment. Because a human reacts in roughly a quarter of a second, Alex built a vibration alert into the app that fired a quarter-second early. A four-person team could reportedly clear more than $250,000 in a week. Three of the men eventually caught were sentenced to two years in prison.
The security investigator who examined the case put it plainly: ‘I would be completely surprised if they weren’t still running this exploit. There’s a lot of those boxes still out there.’
What genuine unpredictability actually requires
All of this matters well beyond casinos, because pseudorandom numbers protect messages, financial transactions, and encrypted communications. If the numbers can be predicted, the security collapses. At the National Institute of Standards and Technology in Boulder, Colorado, one team is building something different: a generator whose randomness can be mathematically certified, not just assumed.
Their approach uses pairs of entangled photons. A crystal splits incoming laser pulses into paired photons that share a quantum state regardless of distance. Each photon travels down an optical fiber roughly ten microns in diameter, about one-tenth the width of a human hair, to one of two measurement stations 110 meters apart. Each station independently chooses a measurement angle at random just before its photon arrives. When researchers compare the results, the correlations between the two stations exceed the mathematical limit that would be possible if the photons carried any predetermined answers. That violation of Bell’s inequality means the outcomes could not have been fixed in advance by anything.
The raw measurements are then processed through a technique called randomness extraction, concentrating the certified unpredictability down to 512 bits per round. NIST publishes the results publicly at random.colorado.edu, along with full verification data. As the team’s lead researcher described their aim: ‘What we’re trying to do is say, what’s the best random number generator that nature allows you to build?’
Einstein famously insisted that God does not play dice with the universe. These experiments, the researcher noted, show he was wrong.
The fiber cable smaller than a strand of hair
In the NIST lab, the actual optical fiber carrying each entangled photon sits coiled inside a cable. Its core measures roughly ten microns across. Getting a single photon reliably into that aperture, thousands of times per second, is what the team calls ‘quantum archery.’
The cable itself is unremarkable to look at, the kind of black sheathing you would find in any server room. What travels through it cannot be seen, cannot be predicted, and cannot be duplicated.


