Leo Paul Marcel Le plancher · the floor

The game · History · Places

How a closing time made a keno game predictable

In April 1994 a Montreal computer consultant won about $600,000 at the Casino de Montréal by predicting its electronic keno draws. The game's pseudo-random number generator restarted in the same state every time the machine powered up, and a casino that closed at night was powering it up every day.

A pseudorandom number generator, or PRNG, is an algorithm that produces a sequence of numbers with the statistical appearance of randomness. It is not random: the entire sequence is determined by a starting value called the seed. The same seed always produces the same numbers, in the same order.

That property decided a keno game at the Casino de Montréal in 1994. The game’s generator started from the same seed every time it was switched on, and the casino switched it on every day.

The explanatory model is a recording. A PRNG is a very long, fixed recording of numbers, and the seed chooses where playback starts. A generator given a new seed each time starts somewhere new. A generator given the same seed plays the same recording from the same place.

How the seed makes a sequence repeat

A generator’s output looks random draw by draw, and that is all it needs to do in normal use. What it cannot do is invent a new sequence without a new starting value. Designers supply one from a source that changes, such as a clock reading at power-up.

Take a generator that starts from the same seed every morning. The first draw on Tuesday is the first draw on Monday; the 40th draw on Tuesday is the 40th draw on Monday. A player who records one day’s draws holds the next day’s.

What changes from one generator design to another is where the seed comes from. What stays fixed is that the seed determines everything that follows.

What happened at the Casino de Montréal

The Casino de Montréal opened on October 9, 1993, and in its early years it closed at night. In April 1994, Daniel Corriveau, a Montreal computer consultant, picked 19 of the 20 numbers drawn in the casino’s electronic keno game three times in a row. He and his family collected about $600,000; The Globe and Mail reported the payout as more than $620,000.

Corriveau had studied the game’s output. Working on an older 286 computer, he analyzed some 7,000 combinations and found that the electronic number generator was repeating in a predictable pattern. He publicly credited his method to chaos theory.

The explanation was more ordinary. The keno game was missing its clock, so it had no changing value to seed its generator; it reset every time it was powered off and started again from the same state. A casino that shut down at night and reopened in the morning replayed the same sequence of draws every day.

The casino shut down the game and called the police. Investigators cleared Corriveau after polygraph testing, and the payout followed. The president of Loto-Québec acknowledged that the problem was the corporation’s: it had failed to test the electronic game before putting it into use. Corriveau broke no law. He had read what the machine showed to every player.

The flaw was invisible under one condition that Montreal did not meet. A machine that never powers down never restarts its sequence. The Casino de Montréal moved to 24-hour operation in 1997; it ended round-the-clock opening in 2020, during the COVID-19 pandemic.

Where the other failure came from: knowing the algorithm

A predictable generator fails in two distinct ways, and the second needs no reset at all.

The first is the Montreal failure: the seed does not change. Anyone who watches the output long enough can find the repetition, and no inside knowledge is required.

The second is the insider failure: the attacker knows the algorithm itself. Ron Harris was a computer programmer for the Nevada Gaming Control Board, responsible for finding flaws in the software that ran casino games. Between 1993 and 1995 he modified slot machines to pay out when coins were inserted in a specific sequence, and he wrote software to predict which numbers a keno game’s pseudorandom number generator would select. On January 15, 1995, his accomplice Reid McNeal hit all eight numbers on a keno ticket at Bally’s Park Place in Atlantic City and won $100,000. Casino executives grew suspicious of the win and alerted New Jersey gaming investigators, and both men were arrested. Harris pleaded guilty to rigging slot machines in Nevada and was sentenced to seven years in prison, of which he served two. He was later placed in Nevada’s Black Book of people barred from casinos.

Corriveau used public output; Harris used private knowledge. The first failure is fixed by changing the seed; the second is fixed by keeping the algorithm and its source code out of the wrong hands, and by watching for wins that should not happen.

Not to be confused with

A pseudorandom number generator is not a true random source. It is deterministic by design; its randomness is only as good as its seed and its secrecy.

Corriveau’s win was not cheating. He altered nothing and used no inside information; the game repeated itself in public.

The Montreal flaw is not the Harris scheme. Montreal’s generator gave away its sequence to anyone who watched; Harris’s scheme depended on a regulator’s insider access to the game’s code.

Asked at the table

What happened with keno at the Casino de Montréal in 1994?
In April 1994 Daniel Corriveau, a Montreal computer consultant, picked 19 of the 20 numbers drawn in the casino's electronic keno game three times in a row and won about $600,000 with his family. The game's number generator restarted in the same state each time it was powered up, so its draws repeated in a pattern he had identified.
Did Daniel Corriveau cheat?
No. He analyzed the numbers the game produced, and investigators cleared him after polygraph testing. The president of Loto-Québec acknowledged that the problem was the corporation's: it had not tested the electronic game before putting it into use.
How can a random number generator be predictable?
Because a pseudorandom number generator is an algorithm. Its whole sequence is determined by its starting value, the seed, so a generator started from the same seed produces the same numbers in the same order.
Why did the casino's closing time matter?
Because the keno game lacked a clock to supply a different starting value, and it reset every time it was powered off. A casino that shut down at night and reopened in the morning restarted the generator from the same point every day.
Is the Casino de Montréal open 24 hours?
Not today. It moved to 24-hour operation in 1997 and ended around-the-clock opening in 2020, during the COVID-19 pandemic.
Has anyone else predicted a casino keno game?
Yes, by a different route. Ron Harris, a computer programmer for the Nevada Gaming Control Board whose job was finding flaws in gaming software, wrote a program to predict a keno game's number generator. His accomplice's $100,000 keno win at Bally's Park Place in Atlantic City led to their arrest on January 15, 1995.

Sources

  1. RISKS Digest 15.80, « Casino finally pays big keno winners », summarizing The Globe and Mail, 28 April 1994, p. A6 — https://catless.ncl.ac.uk/Risks/15/80
  2. Wikipedia, « Montreal Casino » — https://en.wikipedia.org/wiki/Montreal_Casino
  3. Wikipédia, « Casino de Montréal » — https://fr.wikipedia.org/wiki/Casino_de_Montr%C3%A9al
  4. Wikipedia, « Pseudorandom number generator » — https://en.wikipedia.org/wiki/Pseudorandom_number_generator
  5. Bruce Schneier, « Casino Hack », Schneier on Security, 17 March 2010 (reader discussion of the Montreal case) — https://www.schneier.com/blog/archives/2010/03/casino_hack.html
  6. Wikipedia, « Ronald Dale Harris » — https://en.wikipedia.org/wiki/Ronald_Dale_Harris
  7. Las Vegas Review-Journal, « Former Control Board worker, 'Fixer' and a woman are in Nevada's 'Black Book' » — https://www.reviewjournal.com/business/casinos-gaming/former-control-board-worker-fixer-and-a-woman-are-in-black-book-3410568/