# The World Depends on Random Numbers That Aren't Really Random

Source: https://www.youtube.com/watch?v=uXuQF_PPg5U
Recap page: https://rapidrecap.app/video/uXuQF_PPg5U
Generated: 2026-11-18T21:00:48.358+00:00

---
## The Gist

Computers and casinos rely on pseudorandom number generators that are fundamentally deterministic and predictable, meaning experts can reverse-engineer them to exploit slot machines or find Minecraft diamond ore without the seed. True randomness requires physical processes like radioactive decay or quantum entanglement measured across separated telescopes.

## Quick Overview

Computers cannot generate truly random numbers on their own because algorithms are fully deterministic, creating vulnerabilities that hackers and gamers can exploit. By studying the internal states of Linear Congruential Generators used in legacy systems, malicious operators extracted millions from casino slot machines and players located hidden resources in Minecraft. True randomness requires physical entropy sources like thermal noise, lava lamps, or quantum measurements of entangled photons across distant quasars.

**Key Points:**
- In June 2014, a casino in St. Louis recorded a gambler capturing slot machine spins on a phone before returning minutes later to win consistently and walk out ten thousand dollars richer.
- Stanislam Ulam and John von Neumann developed the Monte Carlo method in the 1940s using the ENIAC computer to simulate neutron chain reactions in nuclear weapons using pseudorandom numbers.
- Matthew Bolan proved that Minecraft's pre-1.18 Java-based world generator used an LCG that caused diamond ore and river clay placement starting numbers to differ by a fixed offset of three, allowing players to locate diamonds without knowing the world seed.
- In the 1960s, IBM introduced the RANDU pseudorandom number generator, which catastrophically mapped every three consecutive outputs onto just fifteen parallel planes in three-dimensional space.
- A Russian-led syndicate known as Alex exploited slot machines across US casinos by recording spin timings and predicting the exact moment the machine's Mersenne Twister RNG would hit a jackpot, netting over two hundred fifty thousand dollars in a week before arrests were made in July 2014.
- Cloudflare secures its internet infrastructure by feeding entropy from a physical wall of over one hundred lava lamps into its cryptographic random number generators.
- Physicist Krister Shalm and researcher David Kaiser tested quantum randomness by using entangled photons and distant quasars billions of light-years away to choose measurement angles, violating Bell inequalities and proving the results are fundamentally unpredictable.

![Screenshot at 22:04: A gambler holds a phone up to record slot machine spins, using video analysis to reverse engineer the machine's pseudorandom number generator.](https://ss.rapidrecap.app/screens/uXuQF_PPg5U/00-22-04.jpg)

**Context:** Random numbers underpin modern digital security, cryptography, simulations, and gaming mechanics. However, generating true randomness is notoriously difficult for classical computers, leading scientists, mathematicians, and hackers to study the limits and predictability of pseudorandom algorithms.

## Detailed Analysis

The illusion of computer-generated randomness stems from algorithms known as pseudorandom number generators, which always produce the exact same sequence of outputs if started with the same seed. While sufficient for basic video games and statistical approximations, these deterministic sequences leave systems open to exploitation when attackers can observe enough outputs to reverse engineer the internal state. From the early days of the ENIAC calculating nuclear chain reactions to modern cryptographic protocols, computer scientists have battled the limitations of algorithms like Linear Congruential Generators and the Mersenne Twister. Ultimately, achieving uncrackable security requires tapping into physical chaos, whether through atmospheric noise, lava lamps, or quantum entanglement tests that rule out all pre-determined local variables.

### The Casino Slot Machine Exploits

Casinos rely on slot machines to test randomness, but predictable internal generators allowed a sophisticated team of operators to exploit them for massive payouts.

- In June 2014, a man at Lumiere Place Casino recorded slot machine spins on his phone, left the floor, and returned minutes later to win on almost every spin.
- Investigators initially found no hardware faults, but security footage revealed players hovering their hands over spin buttons and pressing them at hyper-specific intervals.
- On July 14, 2014, authorities arrested members of the syndicate in St. Louis and discovered their phones were transmitting video back to a server in St. Petersburg run by a hacker known as Alex.

![Screenshot at 00:05: A gambler records slot machine spin cycles on an iPhone to capture timing data.](https://ss.rapidrecap.app/screens/uXuQF_PPg5U/00-00-05.jpg)

### Stanislas Ulam and the Monte Carlo Method

Mathematician Stanislas Ulam convalescing from encephalitis in 1946 wondered about the probability of winning card games of solitaire, leading to a breakthrough in nuclear physics calculations.

- Calculating the odds of every possible neutron path in a nuclear chain reaction by hand was impossible due to trillions of potential collision outcomes.
- Ulam realized he could simulate just a tiny fraction of paths using random numbers to get a statistical approximation of how a chain reaction would behave.
- Fellow mathematician John von Neumann utilized the ENIAC computer in March 1947 to run the first computerized neutron simulations, giving birth to the Monte Carlo method.

![Screenshot at 05:32: The ENIAC computer running early numerical simulations in March 1947.](https://ss.rapidrecap.app/screens/uXuQF_PPg5U/00-05-32.jpg)

### Finding Minecraft Diamonds With Math

Minecraft world generation depends on pseudorandom number generators to place resources like diamonds and clay across map chunks.

- Minecraft expert Matthew Bolan demonstrated that pre-1.18 versions of the game used Java's Linear Congruential Generator to determine ore placement.
- Because diamonds and river clay were generated using the same seed plus a fixed offset of three, players could calculate exact diamond locations without knowing the world seed.
- Mojang patched this exploit in version 1.18 by completely replacing the overworld random number generator with a different algorithm.

![Screenshot at 11:35: A player uncovers a vein of diamonds in Minecraft by exploiting predictable LCG seeding offsets.](https://ss.rapidrecap.app/screens/uXuQF_PPg5U/00-11-35.jpg)

### Linear Congruential Generators and RANDU

Early computers relied on simple linear congruential formulas to generate pseudorandom numbers, but these suffered from severe geometric flaws.

- Linear Congruential Generators calculate the next number in a sequence using a simple linear relationship combined with a modular arithmetic step.
- In the 1960s, IBM developed RANDU, a notoriously flawed LCG included in standard scientific software libraries.
- Plotting sequential outputs of RANDU in three-dimensional space revealed that all points fell onto just fifteen parallel planes, leaving massive gaps where numbers never appeared.

![Screenshot at 14:28: A 3D plot of RANDU outputs revealing distinct parallel planes of data.](https://ss.rapidrecap.app/screens/uXuQF_PPg5U/00-14-28.jpg)

### Cracking the Mersenne Twister

The Russian hacking syndicate targeted Aristocrat Mark VI slot machines by reverse engineering their specific pseudorandom number generator.

- Aristocrat slot machines used the Mersenne Twister, an algorithm with a very long period before repeating.
- Hacker Alex dismantled discarded slot machines imported from Russia after gambling bans to analyze their processing and slot machine interface boards.
- By observing a sequence of outputs, Alex's app could calculate the internal state of the Mersenne Twister and vibrate a gambler's phone a quarter-second before the exact right time to press spin.

![Screenshot at 20:30: An open slot machine cabinet displaying the processing boards analyzed by the hackers.](https://ss.rapidrecap.app/screens/uXuQF_PPg5U/00-20-30.jpg)

### Cryptographic Security and Cloudflare's Lava Lamps

Digital security requires true unpredictability to protect everything from bank accounts to private messages against advanced prediction attacks.

- Cryptographic random number generators rely on large keys and extensive internal states to make predicting future outputs mathematically impossible.
- Cloudflare populates its entropy pools by filming a massive physical wall of glowing lava lamps, turning visual chaos into unpredictable seed data.
- Even with known algorithms, hardware-based noise sources and randomness extractors help distill raw fluctuations into certified secure bits.

![Screenshot at 26:13: A wall of lava lamps at Cloudflare used as a physical source of entropy.](https://ss.rapidrecap.app/screens/uXuQF_PPg5U/00-26-13.jpg)

### Quantum Entanglement and Quasar Bell Tests

To eliminate any possibility of pre-determined variables, physicists turned to quantum mechanics and astronomical light sources.

- Quantum physicist Krister Shalm and researcher David Kaiser used entangled photons generated in a lab to test fundamental unpredictability.
- By using light from distant quasars billions of light-years away to choose measurement angles, researchers ensured no local hidden variables could have coordinated the results.
- These Bell test experiments violate classical limits, proving that quantum mechanics provides a source of true, fundamentally unguessable randomness.

![Screenshot at 28:55: Optical fibers and quantum hardware measuring entangled photon polarization states.](https://ss.rapidrecap.app/screens/uXuQF_PPg5U/00-28-55.jpg)

