From mechanical reels to random numbers
The first slot machines, going back to Charles Fey in 1890s San Francisco (see a short history of slot machines), were purely mechanical. Each reel was a drum with symbols around its edge, and where it stopped was down to physics. A classic reel had 22 stops, so three reels gave 22 × 22 × 22 = 10,648 possible combinations. That limit was a problem for the casinos: with only 10,648 outcomes, a jackpot could never be rarer than 1 in 10,648, which capped how large it could be.
The fix came with the computer. In 1984 the Norwegian engineer Inge Telnaes was granted a US patent for a gaming device that uses a random number generator to select where the reels stop. Practically every reel slot built since works on that principle. The reels became a display, and the odds moved into the software.
The random number generator
Inside every modern slot machine a random number generator (RNG) produces numbers nonstop, many times per second, whether anyone is playing or not. When you press spin, the machine takes the current numbers and turns them into reel positions. From that moment the result is fixed. The spinning animation, the reels stopping one after the other and the sounds only reveal it.
Two things follow from this. First, each spin is independent: the machine does not know or care what happened on the last spin or the last thousand. Second, timing is meaningless. Pressing a split second earlier or later gives a different number, but you have no way to tell which numbers are good, so it changes the result the same way a coin toss would.
Reels, stops and the virtual reel
Telnaes' idea was simple. Keep the physical reel with its 22 stops for the player to see, but let the software use a longer "virtual" reel. Each physical stop is assigned one or more positions on the virtual reel. A stop with many virtual positions comes up often, a stop with only one comes up rarely, while the reel the player sees looks perfectly even.
Here is a complete example. Our machine has three identical reels with 22 physical stops: 11 symbols, each followed by a blank. The software maps them onto 64 virtual stops per reel.
| Symbol | Physical stops | Virtual stops | Chance per reel |
|---|---|---|---|
| Jackpot 7 | 1 | 1 | 1.6% |
| Triple bar | 2 | 4 | 6.3% |
| Double bar | 3 | 9 | 14.1% |
| Single bar | 3 | 11 | 17.2% |
| Cherry | 2 | 6 | 9.4% |
| Blank right above or below the 7 | 2 | 14 | 21.9% |
| Other blanks | 9 | 19 | 29.7% |
| Total | 22 | 64 | 100% |
On the physical reel the Jackpot 7 is 1 stop in 22. On the virtual reel it is 1 in 64. Three in a row therefore come up once in 64 × 64 × 64 = 262,144 spins, about 25 times rarer than the 1 in 10,648 the visible reels suggest.
The pay table and what each win is worth
The example machine pays for one coin per spin:
| Combination | Pays | Happens about |
|---|---|---|
| Three Jackpot 7s | 2,500 | 1 in 262,144 |
| Three triple bars | 100 | 1 in 4,096 |
| Three double bars | 50 | 1 in 360 |
| Three single bars | 25 | 1 in 197 |
| Three cherries | 20 | 1 in 1,214 |
| Any three bars, mixed | 9 | 1 in 22 |
| Cherry on reels 1 and 2 | 5 | 1 in 126 |
| Cherry on reel 1 | 2 | 1 in 12 |
| All wins together | 1 in 6.8 |
The machine pays back 92.8 percent of everything bet over the long run and keeps 7.2 percent. That is close to what slot machines return in Nevada in practice. The jackpot, the one result the machine advertises, adds just 1 percent to that return. Most of the money comes back in small and medium wins.
The weighting is what makes the machine profitable. If every one of the 22 physical stops were equally likely, this exact reel and pay table would return 109.8 percent, and the casino would lose money on it. The virtual reel pulls the return down to 92.8 percent without changing anything the player can see.
Why near misses are so common
Look at the blanks again. The two blanks right above and below the Jackpot 7 have 14 virtual stops between them, the 7 itself has one. So whenever a reel stops on one of those blanks, the 7 sits just above or below the payline, in full view. On our machine that happens on 21.9 percent of all reel stops, while the 7 lands on the line only 1.6 percent of the time: 14 times as often next to the line as on it. With evenly weighted reels the ratio would be 2 to 1.
The result is the classic near miss: two 7s on the payline, and the third reel stops with its 7 just above or below the line. On our machine that picture appears about once every 18,700 spins, compared with once every 262,144 for the real jackpot.
This is a known design question. In 1989 the Nevada Gaming Commission ruled that one manufacturer's algorithms, which placed a high number of near misses directly on the payline, were unacceptable. Using virtual reel mapping to put near misses above and below the payline remained allowed and is still standard. Research on near misses finds that they motivate players to keep playing, even though a near miss is simply a loss.
Paylines, ways and video slots
Video slots work on the same principle with more of everything: usually five reels, three or more visible rows and longer reel strips. Instead of one payline they have many, often 20 to 50, or they pay "ways": any matching symbols on adjacent reels from left to right count, wherever they are in the column. With 5 reels and 3 rows that gives 3 × 3 × 3 × 3 × 3 = 243 ways to win.
More lines mean more frequent wins, but not more money. On a 20 line game a spin that pays 10 credits on a 20 credit bet is shown with lights and sounds like a win, yet you have lost half your stake. Researchers call these results "losses disguised as wins", and they make a session feel better than it is.
Volatility in one paragraph
Two machines can return the same percentage and still feel completely different. One pays small amounts often, the other rarely but big. That difference is called volatility, and it decides how a typical session goes much more than the return percentage does. Our example machine wins on one spin in 6.8 and is fairly volatile. How that plays out over 100, 1,000 or 5,000 spins is calculated on the slot RTP page.
Questions about slot machines
Are slot machines really random?
Yes, in the sense that every spin is drawn independently by a random number generator, and regulators test those generators before a machine is approved. Random does not mean even, though: the virtual reel decides how often each symbol comes up, and that weighting is set by the manufacturer to give the planned return.
Do slot machines have memory?
No. The outcome of each spin does not depend on earlier spins. A machine that has not paid for hours is exactly as likely to pay on the next spin as one that just hit a jackpot.
What is a virtual reel?
A longer reel that exists only in the software. Each stop on the physical reel is assigned one or more positions on the virtual reel, so some symbols come up far more often than others while the visible reel looks evenly spaced. The idea goes back to the Telnaes patent of 1984.
Does stopping the reels early change the result?
No. The result is fixed when you press spin. A stop button only shortens the animation.
What is a near miss on a slot machine?
A losing spin that looks close to a big win, for example two jackpot symbols on the line and the third one just above it. On machines with virtual reels the blanks next to the jackpot symbol are often weighted heavily, so near misses appear far more often than chance on an evenly weighted reel would produce.