# Are slot machines purely random or do they pre-calculate every spin?

Being a computer programmer I assumed that every single spin of a poker machine was pre-calculated by the machine thus avoiding the chance of multiple large pays being payed out in a short period of time. e.g Some guy puts in 5 bucks but spins 3 x \$10,000 in three spins.

I am just reading a government designed pamphlet and I am surprised to see the following:

There are millions of possible combinations on modern poker machines and every spin has an equal chance of bringing up a winning combination

It does say later that the operator can change the bias of the machine so that there are fewer chances to win, that is adjusting the probability, but the above statement suggests that the provided payout is still left to chance. Meaning you could effectively get multiple large payouts in a row.

Most slot machine players I have met suggest that a machine "goes quiet" after a medium/big payout and you are better off pulling your money out and switching machines because the machine knows it has already paid you.

Are poker machine payouts for each spin calculated on the fly or is purely down to statistics?

• On the last line, the answer to both options is Yes! Apr 13 '12 at 4:46
• @Oddthinking - I think I worded that wrong, I mean pre-calculated at each turn, as in decided in a deterministic way. Apr 13 '12 at 5:35
• Often, even after explanation, people have trouble grasping the statistical concept of a series of independent events. Instead, gambler's lore of various kinds is used to explain supposed patterns in the events as they are realized.
– Paul
Apr 13 '12 at 6:10
• Why should they be designed like this? The chance that this happens is small at best and if the machine doesn't have enough money left to pay out a large win it still can alert an employee. Apr 13 '12 at 14:53
• Depends on whether you'd consider a Pseudo-Random Number Generator with a seed value a "pre-determined" calculation. It is a deterministic calculation and the same RNG with the same seed should produce the same number sequence. Mar 16 '18 at 16:55

No, it is not the case that results are pre-calculated in gaming machines. The result of each game is calculated independently and on-the-fly.

Gaming machines' randomness is validated statistically by independent companies such as Gaming Laboratories International. [Warning: Site has annoying voice-over.]

At GLI, we have one job: to test electronic gaming equipment. In fact, our clients are gaming regulators in jurisdictions all over the world, more than 450 in all.

They test against standards such as Gaming Devices in Casinos, although the appropriate standard depends on jurisdiction and there is not yet a universally accepted standard.

Example rules from the Gaming Devices in Casinos standards:

Each possible permutation or combination of game elements that produces winning or losing game outcomes shall be available for random selection at the initiation of each play, unless otherwise denoted by the game;

[...]

The RNG [Random Number Generator] shall be cycled continuously in the background between games and during game play at a speed that cannot be timed by the player.

[...]

Unless otherwise denoted on the payglass, where the gaming device plays a game that is recognizable such as Poker, Blackjack, Roulette, etc,, the same probabilities associated with the live game shall be evident in the simulated game. For example, the odds of getting any particular number in Roulette where there is a single zero (0) and a double zero (00) on the wheel, shall be 1 in 38; the odds of drawing a specific card or cards in Poker shall be the same as the live game. For other gaming devices (such as spinning reel games or video spinning reel games), the mathematical probability of a symbol appearing in a position in any game outcome shall be constant.

Note: Some machines manage a growing jackpot. Where there is a jackpot, the expected payouts between games are not independent.

Disclaimer: I have a friend who used to work in the gaming validation industry, but not for this company. I have no connection with Gaming Laboratories International.

• Would be interested to know why this is necessary: "at a speed that cannot be timed by the player". Surely that sucker flies (randomly not cycling 1,2,3,4) at phenomenal pace, not repeating itself at regular intervals? Apr 13 '12 at 5:32
• Possibly in response to Michael Larsen on Press Your Luck? Longer, better-told version by This American Life (Act IV). Apr 13 '12 at 5:44
• @xiaohouzi79 - If you can time the updates, you can predict future numbers, as the RNG is really a pseudo RNG, thus allowing a player to improve his/her odds. Apr 13 '12 at 8:01
• @ChrisW: These things are regulated by law and your specification is not enough by law to simulate poker. To properly simulate a deck shuffle, if you run a million games then the distribution of which card is on top of the deck should be equal - that is, you must guarantee that the random shuffle should generate an equal probability of getting king of club or three of diamonds or any of the other cards as the top of deck. Indeed you need to guarantee this for all positions in the deck. In gambling, the statistical distribution is as important as unperdictability Feb 8 '17 at 14:27
• @DanielRHicks: They don't have to stop short of examining the internals. There are also statistical tests for looking for biases and non-randomness. Mar 17 '18 at 23:39

According to this source, it is possible to pre-calculate the outcome of a slot machine and "rob the bank".

So you can decide whether you beleve if it's pre calculated or completely random and "pre-calculatable" on the fly.

• -1: That source - a Wired article - is not a reliable one; it does not contain sufficient detail or references to ensure what they are relating is true. I was going to demonstrate this by showing another user had asked a question about that exact article, but it turns out that was you! Even you don't trust this source. Feb 8 '17 at 14:38
• FWIW, Schneier seems to have taken it at face value.. Feb 9 '17 at 10:46
• This is interesting but not really related to the question. OP asked whether machines "decide" in advance that the player is going to lose. That the internal random number generator has a weakness and can be predicted is very different from not being based on a random number generator at all.
– Tgr
Mar 18 '18 at 19:08