1. Home
  2. Explore
  3. Business
  4. Slot Machine Gambling Investigation

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Slot Machine Gambling Investigation

Speaker 1Speaker 2

Slot Machine Gambling Investigation

18:17
0:00-18:17
  1. Anna

    Imagine a man at a St. Louis casino recording a slot machine with his phone. He plays for a while, wins some, loses some, and walks away. Five minutes later, he returns to the same machine—and suddenly he’s winning spin after spin. In less than an hour, he leaves about ten thousand dollars richer.

  2. Corey

    And this wasn’t an isolated incident. Casinos in Missouri, Illinois, and California reported similar players: they’d leave, come back minutes later, and win repeatedly. The machines checked out mechanically, but security footage showed the players hovering over the spin button, waiting, and pressing at strangely precise moments.

  3. Anna

    That behavior suggested they might know something about what the machines would do next. Slot outcomes are decided by computers, which use random-number generators. So the deeper question is: how random are the numbers those computers produce? It sounds like a technical detail, but the answer connects casino fraud, nuclear physics, video games, and digital security.

  4. Corey

    The first big example comes from the development of nuclear weapons. A uranium-235 nucleus can split when struck by a neutron, releasing energy and roughly two or three more neutrons. If, on average, each split causes more than one additional split, the process grows into a runaway chain reaction.

  5. Anna

    But whether a chain reaction grows depends on what happens to each neutron. It might travel until it hits another nucleus, bounce off, get absorbed, or cause a split. By 1945, scientists at Los Alamos had measured probabilities for these outcomes, but the probabilities depended on things like neutron speed and what material it was passing through. With trillions of neutrons, calculating every possible path was out of reach.

  6. Corey

    Mathematician Stanislaw Ulam found a practical way to tackle that kind of problem after a serious illness in 1946. While recovering in the hospital, he played solitaire and wondered about the chance of winning a game. A deck can be shuffled in 52 factorial ways—about eight times ten to the sixty-seventh—so working through every arrangement was hopeless.

  7. Anna

    Ulam’s key idea was to estimate the answer by trying many cases. Play a hundred games, count the wins, and use that fraction as an approximation. If eight out of a hundred games are wins, you estimate the chance of winning at around eight percent. It’s not an exact count of every possibility, but it can give a useful estimate.

  8. Corey

    He realized the same method could model neutrons. Start with a sample of neutrons, use random numbers to choose what happens at each interaction, and then track any neutrons produced by a split. For a simple illustration, you might assign some random-number outcomes to bouncing, some to splitting, and others to absorption. In the real calculations, the assignments used probabilities scientists had measured.

  9. Anna

    The neutron’s speed or direction could change after an interaction, so the probabilities for its next step might change too. The computer would use another random number with the probabilities for that new situation, and keep following the chain. If the number of neutrons grew, the reaction took off; if more were lost than produced, it fizzled. By simulating a small sample of paths, researchers could estimate the behavior of the much larger chain reaction.

  10. Corey

    This is the Monte Carlo method: use random sampling to estimate the behavior of a complicated system. Ulam’s colleague John von Neumann worked out how the ENIAC computer could track a hundred neutrons and their descendants through thousands of collisions in about five hours. The method was named after Monte Carlo, Monaco, where Ulam’s uncle liked to gamble.

  11. Anna

    But the ENIAC needed random numbers, and it couldn’t roll dice. Researchers had used printed books of random digits, but the computer didn’t have enough memory to store all the numbers a simulation required. So von Neumann devised a way for the machine to generate numbers itself.

  12. Corey

    His middle-square method starts with a number called a seed. To generate four-digit numbers, take a four-digit seed, square it, and keep the four middle digits. For example, start with 2,137. Its square is 4,566,769. Write that as 04,566,769 so the digits are eight places long, then take the middle four digits: 5,667. That becomes the next number, and you repeat.

  13. Anna

    The middle digits are used because they draw on contributions from across the seed, while the digits at the edges can be more predictable. But the method has a serious flaw: its output eventually gets trapped in loops. Starting from 2,137, after 43 steps the sequence reaches 4,100, then 8,100, 6,100, 2,100, and back to 4,100. From then on, it repeats those four values forever.

  14. Corey

    And that trap catches a lot of seeds. Nearly two-thirds of four-digit seeds end up in that particular loop, and almost one in five ends at zero, after which every number is zero. In fact, every possible four-digit starting value eventually falls into one of just eight traps. Von Neumann’s team used eight-digit numbers for the first ENIAC simulation to get longer sequences, tested the first two thousand numbers statistically, and programmed the computer to restart from the original seed after those two thousand.

  15. Anna

    In spring 1948, the ENIAC ran the first computerized simulations of neutron behavior. The method worked, but the numbers it produced weren’t truly random: the same seed always gives the same sequence. That’s why they’re called pseudorandom numbers. They can still be useful, but they create three challenges: sequences may fall into short loops, they may hide patterns, and someone who discovers the seed may predict every number.

  16. Corey

    A later example shows how those ideas can turn up in a video game. In the Minecraft version described here, each world is divided into chunks, each sixteen blocks wide in the X and Z directions. A chunk can contain a hidden diamond-ore vein. A player who knows how the game generates resources can sometimes use the location of a clay patch to figure out where to dig for diamonds.

  17. Anna

    The relevant pseudorandom generator is a linear congruential generator, or LCG. It applies a simple rule: multiply the current number by a chosen value, then take the remainder after dividing by a modulus. That remainder is modular arithmetic—it makes the values wrap around instead of growing without bound.

  18. Corey

    For a tiny example, imagine seven positions numbered zero through six. Start at one and multiply by three, taking the remainder after division by seven each time. The sequence goes from one to three, then to two, six, four, five, and back to one. It visits every nonzero position before repeating. With much larger numbers, an LCG can run for a long time before its sequence repeats.

  19. Anna

    But a long period doesn’t guarantee good randomness. IBM’s RANDU, used in scientific software in the 1960s, could produce more than half a billion numbers before repeating. Yet when researchers took groups of three consecutive outputs and plotted them as points in three-dimensional space, the points fell on just fifteen parallel planes, leaving huge gaps.

  20. Corey

    That structure follows from the generator’s linear rule. The second number is calculated from the first, and the third from the second, so all three are connected by a linear equation. In three dimensions, that equation describes a plane; the modular wraparound creates a set of parallel planes. RANDU made the pattern especially visible, though other LCGs can have much more closely packed planes.

  21. Anna

    Java adopted a better LCG in the 1990s, with a better multiplier, an added constant, and a much larger modulus. Its sequence lasts more than 281 trillion steps before repeating. Its three-dimensional plots look much more like a cloud because the planes are so tightly packed, but the underlying structure is still there.

  22. Corey

    That generator also created the Minecraft opportunity. The game didn’t use completely independent starting values for every resource. It started from the world seed and added a different fixed number for each resource. For diamonds and river clay, those starting values differed by just three before Java modified them. In most worlds, their relationship remained one of a few predictable values.

  23. Anna

    Because the clay and diamond calculations then passed through the same LCG, their outputs were related. Comparing the two could cancel out the shared unknown part, so the clay patch’s location could reveal where to search for diamonds—without knowing the original world seed. The exploit depended on that game’s particular generator and setup; Minecraft changed its ore generator in version 1.18 to remove the flaw being used.

  24. Corey

    There’s an even more fundamental weakness with LCGs: their outputs can reveal the generator’s hidden state. Java’s LCG tracks an internal value made of 48 binary digits. When it outputs an integer, it reveals 32 of those digits, leaving only 16 unknown. That leaves 65,536 possible internal values, which a computer can test against the next output; only one matches.

  25. Anna

    Once the internal value is recovered, the rest of the sequence can be calculated. So even a generator with a long period and no obvious visual pattern can still be predictable if its simple structure exposes enough information. That’s a problem for security—and it also helps explain the casino story.

  26. Corey

    The slot machines involved in the scheme weren’t using Java’s LCG. Many used a more complicated generator called the Mersenne Twister. It begins with a seed and fills a table of 624 numbers. It then performs a calculation called a twist to make a new table, transforms its numbers into outputs, and repeats the process. Its period is enormous—more than six thousand digits long.

  27. Anna

    But a huge period doesn’t make a generator unpredictable if someone can learn its rules. A hacker known as Alex, working with a team in St. Petersburg, got slot machines after most gambling was banned in Russia and machines were sold off. The team reverse-engineered the machines’ software and worked out how their random-number generator operated.

  28. Corey

    The generator kept running even when nobody was playing, and the result of a spin depended on the number it selected at the instant someone pressed the button. The team analyzed videos of spins sent from casinos and used their own machines to work out when a winning spin was most likely. Then they needed players to press at precisely the right time.

  29. Anna

    A person takes roughly a quarter of a second to react, so Alex built that delay into a phone app. The phone vibrated about a quarter-second before the player needed to press. It didn’t guarantee a win on every spin, but a four-person team reportedly took more than $250,000 in a week. Four men were charged with conspiracy to commit fraud; three were sentenced to two years in prison, and one cooperated with the FBI.

  30. Corey

    The broader lesson is that pseudorandom generators are useful, but their predictable mathematical rules can be exploited when someone knows enough about the generator and its outputs. That matters far beyond games and casinos, because random numbers help protect messages, bank accounts, and other digital information.

  31. Anna

    For digital security, cryptographers use cryptographically secure pseudorandom number generators. One way to build one is to feed inputs into an encryption algorithm that scrambles them using a secret key. The key acts like a seed, but the outputs are designed to look unrelated to the inputs unless you know that key.

  32. Corey

    Even if an attacker knows the encryption algorithm and sees its inputs and outputs, recovering the key should be practically impossible. A common key length is 128 bits, meaning there are more than 300 trillion trillion trillion possible keys. Without the key, guessing the next output is not realistic. This addresses predictability—but the algorithm still needs a genuinely unpredictable starting key.

  33. Anna

    Computers get that initial unpredictability from the physical world. Modern processors may measure tiny fluctuations in electrical signals. Cloudflare, for example, uses a wall of lava lamps to generate random seeds. But there’s a deeper question: are physical events truly unpredictable, or do they only seem that way because we can’t measure everything?

  34. Corey

    A coin toss seems random, but in classical mechanics it follows physical laws. If you precisely controlled the coin’s starting conditions and how it was flipped, you could in principle predict how it would land. Pierre-Simon Laplace imagined an intelligence that knew the position and motion of every particle in the universe; under classical mechanics, it could calculate everything that would happen.

  35. Anna

    The researchers at NIST in Boulder are trying to go further than making numbers that merely look random. They want a generator whose unpredictability can be certified, using quantum mechanics. In their experiment, an intense laser produces about a hundred million light pulses per second. A pulse interacts with a crystal, and sometimes a photon splits into a pair of daughter photons.

  36. Corey

    Each photon has a property called polarization, related to the direction of the light’s electric field. The experiment creates a pair that is in a quantum superposition: both photons can be horizontally polarized, or both vertically polarized, with no way to distinguish those possibilities in advance. The photons share an entangled quantum state, so measurements of them are correlated.

  37. Anna

    The researchers send the two photons to separate measurement stations, 110 meters apart. Getting each photon into an optical fiber is difficult because the fiber’s opening is only about ten microns wide—roughly one-tenth the width of a human hair. At each station, they measure polarization using one of two possible angles, with the choice made randomly just before the photon arrives.

  38. Corey

    A detector either registers a photon or doesn’t, giving a one or a zero. It may sound circular that random choices help produce random numbers, but the researchers use the choices to test the detector outputs. The measurement-choice randomness need only be good enough; the experiment aims to use the results to certify stronger unpredictability in the output bits.

  39. Anna

    Here’s the test. If the photons carried predetermined answers for every possible measurement, there would be a mathematical limit on how strongly the two stations’ results could correlate. The researchers observe correlations that exceed that limit. This is called a violation of Bell’s inequality.

  40. Corey

    Because the measurement choices are independent and the stations can’t communicate during the measurements, the results can’t be explained by locally predetermined answers. That supports the conclusion that the detector results contain genuine unpredictability—provided the experiment’s assumptions hold.

  41. Anna

    One concern is the freedom-of-choice loophole: perhaps the particles somehow know which measurements will be selected before they arrive, like a student who gets the quiz questions in advance. To push back against that possibility, David Kaiser and collaborators used light from distant quasars to choose the measurements. The light had traveled for billions of years from regions that couldn’t communicate with each other since nearly the Big Bang.

  42. Corey

    That doesn’t eliminate the loophole completely, but it pushes any possible coordination much farther back in time. NIST also has to think like a hacker. Someone could try to shine light into the telescopes and influence the measurement choices, so the random-choice sources must be physically protected. The result also relies on assumptions such as no faster-than-light signaling, accurate timing and distance measurements, and faithful, secure recording.

  43. Anna

    Even after the Bell test, the raw detector bits might not be evenly balanced or independent. The test tells researchers how much unpredictability is present across many measurements, but they still need to extract a clean sequence. A simple analogy comes from a method associated with von Neumann: flip a possibly biased coin twice, keep heads-tails as zero and tails-heads as one, and discard matching pairs.

  44. Corey

    If the flips are independent and the coin’s bias stays the same, heads-tails and tails-heads are equally likely, even if heads is more common overall. You get a shorter sequence, but the kept outcomes are fair. NIST’s mathematical randomness-extraction technique is much more powerful, but the basic idea is to distill certified unpredictability from raw outcomes.

  45. Anna

    In the experiment described, the Bell test certifies at least 820 bits’ worth of unpredictability in the raw measurements, which the researchers concentrate into 512 bits. Every measurement contributes to every extracted bit. Unlike ordinary pseudorandom numbers, these bits aren’t merely hard to predict: their unpredictability is certified, given the experiment’s assumptions.

  46. Corey

    So the story runs from estimating neutron chain reactions to exploiting game and casino generators, and then to protecting digital security. Pseudorandom numbers can be powerful tools, but algorithms alone can’t create unpredictability from nothing. For the strongest kind of randomness, the researchers turn to quantum measurements—and carefully test whether their outcomes could have been predicted in advance.

  47. Anna

    And that’s the central distinction: a sequence can look random, run for an incredibly long time, and still be predictable if its structure is known. Genuine randomness is a much stronger claim. It takes both a physical source and a way to verify that its outputs contain unpredictability.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent