How Does The Randon Generater On A Slot Machine Work

  1. How Does The Randon Generator On A Slot Machine Work Cited
  2. How Does The Randon Generator On A Slot Machine Works
  3. How Does The Randon Generator On A Slot Machine Work

Slot machines work the same way, but with much longer odds. A slot might have one million possible results (combinations of symbols), but only one of those is going to be a winner. Each of the one million results is equally likely, but only one of those million results is the jackpot.

on

Modern slot machines are powered by software called “random number generator” software — RNG, for short. If you can beat the RNG software, you can beat the slots.

That means winning money.

At one time, slot machines were powered by physical reels and springs, but no modern casino uses such gadgets. Even the machines that LOOK mechanical are powered by RNG software.

Can having an understanding of how that RNG software works enable you to change the return to player (RTP) percentage in your favor?

These are the questions this post tries to answer.

Some Definitions

Understanding what’s happening on a slot machine and with the RNG and RTP is easier when you understand some of the following expressions:

  • Hit Frequency: How often you can expect to see some kind of winning result on a slot machine
  • House Edge: A statistical prediction of how much of each bet the casino will win in the long run. It’s expressed as a percentage, and if you add the house edge to the return to player percentage, you’ll always get 100%
  • Independent Trials: Events that don’t affect subsequent events and which aren’t influenced by prior events. In the case of slot machines, every spin of the reel is an independent trial
  • Jackpot: The amount of the biggest win available on a slot machine game
  • Long Run: A large number of trials. The actual long run is infinity. Every spin of a slot machine’s reels takes you nearer the long run
  • Odds: One way of expressing probability (see below). Also a measure of how much a bet pays off compared to the amount bet. With slot machines, winnings are expressed as “X for Y” rather than “X to Y.” I’ll explain that further in this post
  • Payback Percentage: The same thing as the return to player percentage. A predicted estimate of how much of each bet you’ll get back as winnings. This is always a number under 100% so that the casino can make a profit
  • Payout: The amount you win from a specific combination of symbols
  • Probability: How we measure the likelihood of an event happening. A probability is always a ratio or a fraction and can be expressed in multiple ways — as a fraction, as a decimal, or as a percentage
  • Random Number Generator (RNG): A computer program that cycles through thousands of numbers per second. When a slot machine player hits the spin button, the number that is being “thought of” at that instant determines the results on the spinning reels
Randon
  • Reels: The reels are the things that spin on a slot machine. They have multiple symbols on each of them
  • Return To Player (RTP): This is a percentage that predicts, in the long run, how much money a slot machine will pay back to a player in winnings. This is always under 100%, because otherwise, the casino wouldn’t make any money
  • Short Run: What happens on a small number of trials. The fewer trials, the closer you are to the short run. The ultimate example of the short run is a single spin of the reels on a slot machine
  • Slot Machines: Any gambling machine with spinning reels with symbols on them
  • Symbols: The pictures on the front of the slot machine reels. If these pictures match, you get winnings
  • Weighting: How the random number generator assigns a probability to a specific symbol coming up. Some symbols are weighted to come up more often than others, and vice versa

How Does a Slot Machine Work?

Early slot machines had three reels with multiple symbols on each, and they paid out when you got a winning combination. The reels were housed inside the machine and were activated by pulling a lever on the side of that machine. Springs set the reels into motion.

Calculating the probability of getting various results on a mechanical slot machine was easy. You just took the number of symbols on each reel and divided to get the probability on one reel. Then you multiply by the other reels.

On a slot machine with eight symbols on each reel, the probability of getting a specific symbol on a reel is 1/8.

The probability of getting that symbol lined up on all three reels is 1/8 x 1/8 x 1/8, or 1/512. That can also be expressed as odds of 511 to 1, or 0.2%.

These slot machines generated returns for the casino by paying out less in winnings than the odds of winnings. Since you have 512 possible outcomes with this machine, as long as the total payouts for all those outcomes total less than 512, the casino makes a profit.

You divide those payouts by those outcomes to get the predicted payback percentage or return to player.

Let’s say you have a total of 450 coins you could win after adding all the winning combinations together.

The payback percentage for the game would be 450/512, or 87.9%.

In the long run, you’ll win 87.9 cents for every dollar you put through the machine. The casino will keep the rest.

That’s a long-term average based on the probability and the payouts. The game doesn’t know where it’s at in terms of that expectation, and it doesn’t change its randomness based on how much you’ve won or lost before now.

In other words, the probability of getting three cherries on the next spin is always 1/512, regardless of what happened on the previous spin, the previous 10 spins, or the previous 100 spins.

Some people might think that if you just got three cherries, the probability of getting that result again on the next spin drops.

It doesn’t.

It’s still 1/512, just like it was before.

How Random Number Generators Changed How Slot Machines Work

With a random number generator creating these results, slot machine designers can change the weightings for the symbols. You can still have eight symbols per reel, but the probability for the cherries might be set at 1/16 instead of at 1/8, while the probability of bars might be set at 1/4 instead of 1/8.

This enables the slot machine to offer bigger prizes while maintaining a profitable return to player percentage.

Each of the numbers that the random number generator program cycles through corresponds to a combination of reel symbols on the payline. Those weightings are accounted for in the assignment of the numbers.

All of this takes place “under the hood,” too, so you have no way of knowing what any of the probabilities are.

In fact, you can have two identical slot machines sitting right next to each other programmed for different payback percentages. Slot machine A might have a payback percentage of 88%, and slot machine B might have a payback percentage of 92%.

They might both be Wheel of Fortune slots games, too. The only difference is the probability with which the symbols come up.

The Difference Between the Short Run and the Long Run

The rule of thumb when dealing with random events is that anything can happen in the short run — anything at all.

But the closer you get to the long term, the more likely you are to see results that mirror the predicted expectation.

  • You’re playing a slot machine game with an 88% payback percentage. You make one spin, and you bet $1 on that spin.
  • Practically any result is possible at this point. Some results are more likely than others, but your return on that single bet absolutely will not match the statistical expectation of 88 cents.
  • There’s a good chance — maybe 50% to 75% — that you’ll lose your dollar altogether.
  • The rest of the time, you might win a dollar, $10, or even $1,000 on that single spin.

Those are all possibilities.

In fact, even if you make 10 spins or 100 spins, you probably won’t see results that line up with the mathematical expectation. Your sample size is too small.

How Does The Randon Generator On A Slot Machine Work Cited

As the number of bets you make approaches infinity, though, the more likely it is that your results will start looking like the results you’d expect. Remember, these expectations are averages over the course of those bets.

Let’s say you make 1,000 bets at $1 each, and when you finish, you have $880 left. You’ve lost $120 over 1,000 spins, so that’s a $0.12 loss per spin on average.

That also represents an 88% return to player percentage.

That’s exactly what probability would have predicted.

But even in that situation, it wouldn’t be unusual to have results that are skewed by variance in the short run. Win the 1,000-coin jackpot twice in those 1,000 spins, and it would be almost impossible for you to achieve results that resemble the mathematical expectation.

What About Hit Frequency? How Does the Slot Machine Know How Often to Pay Me?

The slot machine doesn’t “know” anything. In fact, it has no memory of what happened on your previous spin. The hit frequency is established by the programming of the random number generator.

Most of the time, the hit frequency for a slot machine will be at least 25%. Usually, it’s more than that. 33% to 45% isn’t uncommon.

But that’s strictly a function of probability. In the short run, you might win far more often than that — or far less often.

Slot machines don’t know what happened on the previous spin.

These are independent trials. Those predictions are just predictions based on probability.

So How Do You Beat the Random Number Generator?

I have a good friend who claims that his aunt used to pay her rent and bills by playing the slot machines. He said that she would watch the machines and get an idea of how often they paid out. When the right amount of time had passed between payouts, she would bet on that machine and win.

He claims that he went to the casino with her on multiple occasions, and she would point out a machine to him, and he’d play on it and win.

He’s convinced that they were able to beat the random number generator by paying attention to the cycles that the computer program was going through. That way, when the right number was about to come up, they could be there and bet on that number.

Do you see the trouble with their logic?

Yes, a random number generator program cycles through numbers.

But the program cycles through thousands of numbers PER SECOND. This isn’t a case of the computer program cycling through 120 numbers per hour or something like that. If it were, then sure, you could easily figure out when a machine was “due” for a payout.

The cycles happen so fast that they might as well be random.

How did he and his aunt win?

A combination of factors is in play here. One of these is confirmation bias. They expected to see certain results, so those are the results they’re most likely to remember. This is a common psychological foible with anyone.

The other factor is that they might have gotten lucky a few times. Everyone wins occasionally if they play long enough. If they didn’t, the casinos wouldn’t make any money because they wouldn’t have any customers.

How Do You Win Against an Electronic Slot Machine, Then?

Your only hope of winning against the random number generator is to get lucky in the short run and quit immediately.

The longer you play, the more likely you are to see results which resemble the predicted results.

There’s no way of guaranteeing you’ll beat the computer program other than by cheating or re-programming the machine. That’s beyond the scope of this post, and it’s a major crime, anyway. (In Nevada, cheating at gambling is a felony.)

What’s your best strategy then?

Since most slot machines played for a higher denomination have a higher payback percentage, it’s probably a good idea to play as few spins as possible for as much money as possible.

The penny slots players are the ones least likely to win big because the house edge grinds away at your money over time like compound interest.

If you have $100, you’re better off betting all of it on a single spin of the reels than you are making 100 spins on a $1 machine or 2,000 spins on a nickel machine.

You’ll spend less time playing, but you’ll have a better probability of going home with some big winnings in your pocket.

The trick is to walk away once you’ve won and never go back.

I have a buddy who hits the Winstar Casino at least once a week. He wins occasionally — maybe once every four or five trips. Sometimes he even wins big money, which he puts in the bank.

But he keeps going back.

Since those games are negative expectation bets, he’ll inevitably lose his money if he keeps playing.

Even though he sometimes wins, he keeps exposing his bankroll to the house edge.

And that’s a sure way to lose.

The only way to beat the random number generator is to get lucky in the short run and walk away forever once you’ve won.

That’s probably not the way most people are going to play, so here’s a compromise for someone who wants to get some more gambling under her belt while still having a chance to beat the random number generator.

Set a win goal. I like to find a flat-top slot machine with a 1,000-coin jackpot. Hitting that jackpot is my goal.

I set aside 600 times the size of the bet on that game. If I’m playing a game with a $1 cost per spin, I’ll set aside $600.

I’ll then play the game until I’ve hit the jackpot or lost my entire $600, whichever comes first.

This doesn’t give me any kind of mathematical advantage over the casino, by the way.

It just gives me a fighting chance of winning some money and going home with it.

How Does The Randon Generator On A Slot Machine Works

Conclusion

Do you want to know how to beat RNG software?

Failing that, play with some kind of strategy that keeps you in the short run and out of the long term.

Besides cheating and hacking, there’s no other way to beat the random number generator.

Please enable JavaScript to view the comments powered by Disqus.
You are playing a three-coin slot machine. You only are playing two coins at the time. The jackpot is hit. If you had been playing one coin, or if you had been playing three coins, would it still have gone off at that point?

If you had put in one or three coins the outcome would likely have been entirely different. The machine is constantly drawing random numbers and the numbers that were drawn at the moment you spin the reels determine the outcome. So, if you had played fewer or more coins you would have spun the reels at a different moment and thus the outcome would have been different.

Hey Shack I hadn't been to the site in awhile and I just wanted to compliment you on the new sleek look. I know you initially wanted to stay away from the banners but they do help pay the bills eh?
Congratulations also on the new gig with Casino Player, I enjoy it the site and your occasional posts on bj21. As someone who works in the industry, admittedly not slots, I was under the impression that the more recent slots have the RNG stop the moment the first coin drops, so it really doesn't matter if you play 1,2, or 3 coins -- the symbols will line up the same. Have I been misinformed? According to your previous answer I apparently have. Keep up the good work and I'll stay in touch, thanks and best wishes.

Thanks for the kind words Dave. You're right that it was the money that finally made me accept the banners. It is my understanding that when the player presses the button to spin the reels the random numbers are drawn at that instant, which determine where the reels stop, and ultimately what you win. The number of coins bet does not matter.

How many numbers does the RNG (Random Number Generator) pick for each spin in a slot machine? Is it three numbers (1 for each reel) or is it 1 number that's mapped to a unique combination of symbols for all 3 reels?
This is a great website!. FYI - A guy missed the Megabucks jackpot (7.9M) yesterday because he had just two coins in. To the best of your knowledge, when does the RNG stop and determine your outcome? If it stops on the first coin, then he blew it. If it is on the last coin, he could have had an entirely different outcome. My guess that the stop time is set by the individual manufacturer, and there is no regulation telling him when to do so. Just wondering if you knew different.

Thanks for the compliment. The outcome of the game is determined when the player initiates the spin. The game is constantly drawing random numbers, even when not played. The random numbers chosen at the moment the button is pressed to spin the reels determine where the reels stop, which determines what the player wins. So, if the player bet three coins he would have pressed the button at a different moment, causing a different outcome.

Have you noticed when you look sideways past the right reel on IGT games there are 4-5 counters inside the machine labeled 'coins in, coins out, jackpots' or similar wording? I was just wondering what your experience with the counters was. Is there any way to get helpful information from those? Thanks for your time.

No, that information won’t help you at all. Your odds are always the same on every spin, regardless of the counters.

I have heard it is illegal for a slot machine to deliberately have too many near misses. Can you tell me what you know about this?

To answer your question I asked a well connected gaming consultant and he said Nevada regulations state that one stop on a reel can not be weighted more than six times more than either stop next to it. So if a jackpot symbol were weighted by 1 and both bordering blanks were weighted by 6 then there would be 12 near misses for every one time the reel stopped on the jackpot symbol. This would be the maximum allowed near miss effect. My own results detailed in my slot machine appendix 1 back up this theory well. The red double seven was the highest paying symbol and I saw the blanks above and below it about 5 to 6 times as often:

Double Strike Actual Results

SymbolReel 1Reel 2Reel 3
Blank250248291
Double red 7525155
Blank259292262

The same source said that New Jersey and Mississippi likely have adopted the Nevada regulations.

This is not a game theory question, but I figured since you answer dating questions you might handle this. I had a dream recently where I sat down at an open slot machine. I was getting my player’s card out of my pocket when a guy came up from behind me and put money in the machine. I told him it was my machine and hit the cash out button and gave him his ticket. He said he had his eye on the machine and since he had his money in first it was his machine. I turned to call a slot attendant and while I was doing that he put his money in again, pushed the button and hit a jackpot. In my dream we then had an argument over who gets the money, the person who clearly had the machine and intended to play it or the person who unsolicited put the money in the machine. I realize this is a bizarre situation but who do you think would win the argument?

My understanding is that the person who is pressing the buttons gets the money. I asked Brian, who helped with the last question, about this. Here is what he wrote, which I agree with.

In the scenario described, the person who put in the money and pressed the buttons would receive the jackpot.

What I find interesting about this question is the paradox that in all likelihood, the jackpot never would have occurred without this chance encounter.

As you know, the random number generator in the slot machine is continuously working even when the machine is not in play. So even though one patron feels cheated, their run-in ultimately led to pressing the spin button at that exact millisecond when the RNG was on the winning combination. So, if one patron had acquiesced, there is never a jackpot to fight over.

I have used your site to knock down myths and betting systems with many friends and your proofs always win the day. On the Pink Panther (and some others) there is a bonus round that presents a screen with pictures from which to pick. Behind some are coin amounts and others have a symbol that ends the bonus round. Once you are presented with the bonus board the placement of the symbols cannot be changed, can they?

Thanks for helping in the fight against betting systems. First let me say that I have never worked for a major slot machine company and don’t have direct knowledge of this. However, I know many people in the industry and those I trust pretty much are in agreement on this topic.

That said, it is my understanding that in all forms of electronic games, including video slots, video poker, and video keno, the outcome is usually determined the moment you make your decision. Meanwhile the possible outcomes are constantly being shuffled, thousands of times a second. I can’t speak for every slot machine but I believe that with the major U.S. slot makers the outcome is not predestined but depends on the exact microsecond you press the button to make your play.

First, love the site, very informative! Background: When using a Random Number Generator (RNG) to determine certain payouts for a finite set, such as 1 million lottery scratch off cards, the RNG can be programmed to drop non-pay or add pay selections so as to keep a more even distribution of winners throughout the finite set of cards created. The goal is to maintain a more even distribution in the cards along with the payout percentage as required. Is this, or can this programming be done in Nevada? The law of averages would indicate no need for this, but is it not theoretically possible for a signed 97% slot machine to payout 95% one year and 99% the next year unless some control on the RNG was made?

How Does The Randon Generator On A Slot Machine Work

Thanks for the kind words. Scratch cards and pull tabs can indeed be printed in batches. These batches will have a specified number for each win, and the return of the overall batch will be exactly as the maker intended. In some jurisdictions, where only pull tabs are legal, the outcome can be displayed to the player on a video monitor, in the form of a slot or video poker machine. However, in Nevada, that is not how slots work. Each play is completely independent of the past. A machine programmed to average a 97% return, could indeed pay under 95% or over 99% over a year, especially if not heavily played.

Comments are closed.