The World Depends on Random Numbers That Aren't Really Random | Veritasium
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.