RNG (random number generator)

An RNG, or random number generator, is the piece of software inside every online slot that decides the result of each spin before the reels finish moving. It produces numbers that cannot be predicted, the game turns those numbers into reel positions, and nothing you do between spins changes what comes next.

Key takeaways

  • The RNG fixes a spin’s result the moment you press spin; the animation only shows it.
  • UK rules require the output to be acceptably random and ban games that adjust themselves to recent results.
  • Each spin is independent, so a slot is never due a win or running hot or cold.
  • The RNG decides what lands; the paytable and RTP decide what that result is worth.
Stands for
Random number generator
Job
Picks the outcome of every spin
UK standard
Gambling Commission RTS 7
Compensating games
Not permitted in Great Britain
Affected by timing or stake?
No

What RNG means on an online slot

In slot terms, the RNG is an algorithm that churns out long strings of numbers with no pattern a person or computer could exploit. When you press spin, the game takes the next numbers from that stream and uses them to choose where each reel stops. Everything you then see, from the blur of the reels to the sound effects, is presentation: the result already exists.

Most online slots use a software algorithm called a pseudo-random number generator. The word pseudo sounds alarming, but it simply means the numbers come from a mathematical process rather than, say, radioactive decay. Properly built and seeded, its output passes the same statistical tests as genuine randomness, and the Gambling Commission’s technical standards say it should be computationally infeasible to predict the next number without knowing both the algorithm and its seed value.

The RNG is one half of a slot’s engine. The other half is the maths model: the reel strips, symbol weights and paytable that turn a random number into a payout. The model is what sets the RTP and the variance; the RNG’s only job is to make sure every possible result turns up in exactly the proportions that model intends. For a wider tour of both halves, see how online slots work.

How the RNG turns a number into a spin result

The process is called mapping, and it is easiest to follow with a stripped-down example. Picture a reel strip with 100 positions, numbered 0 to 99. The developer has placed 3 wild symbols, 8 bonus symbols and various card and picture symbols along that strip.

  1. You press spin. The game requests a fresh random number for each reel from the RNG.
  2. Each number is scaled to the size of its reel strip. On our 100-stop strip, any raw number becomes a value from 0 to 99.
  3. The value picks a stop. If reel one lands on 47, positions 46, 47 and 48 become the three symbols you see.
  4. The game repeats this for every reel, then checks the finished screen against the paytable.
  5. Your balance is updated and the reels are animated to the result that was chosen in step 3.

Because each stop is equally likely, a symbol’s chance of landing depends on how many times it appears on the strip. With 3 wilds in 100 stops, a wild lands on the middle row of that reel 3% of the time. Put 8 bonus symbols on the same strip and the chance rises to 8%. Developers tune those counts, often reel by reel, to hit their target RTP and feature rate. Modern games also change strips during free spins or features, which is why a bonus round can feel different from the base game.

Random valueSymbol on the middle rowShare of the strip
0–2Wild3%
3–10Bonus symbol8%
11–25High-paying picture15%
26–55Mid-paying picture30%
56–99Low-paying card symbol44%

Real games are more complex: strips can have dozens or hundreds of stops, each reel can differ, and modifiers may draw extra random numbers. The principle stays the same: one random draw, one mapped result.

What UK rules say about slot RNGs

Online slots offered to players in Great Britain must meet the Gambling Commission’s Remote Gambling and Software Technical Standards. Standard RTS 7, on the generation of random outcomes, is the part that governs the RNG. In plain English it requires four things.

  • Acceptable randomness. The output must be shown, to a high degree of confidence, to be random using generally accepted statistical tests.
  • No compensated games. A slot cannot adapt to recent results, for example by paying more after a dry spell or less after a big win. Manual or automatic changes to the odds during play are prohibited.
  • Fair mapping. Random numbers must be turned into outcomes in line with the published rules and paytable, used in the order they are produced, and not quietly thrown away.
  • No fake near misses. A game may not swap one losing result for a different losing result designed to look closer to a win.

Games are checked by independent test houses before release, and the casino’s licence makes it responsible for running the approved version. If you want to know how that chain works in detail, read how online slots are tested in the UK and who tests UK online slots. The separate design rules on spin speed and autoplay change how fast results are shown, not how they are chosen.

RNG myths slot players still believe

Most slot superstitions fall apart once you understand that each spin is a fresh, independent draw. These are the ones that come up most often.

BeliefWhat actually happens
The slot is due a win after a long losing runPrevious spins have no memory in the draw; the next spin has the same odds as the last one.
Stopping the reels early changes the resultThe result is fixed before the animation; slam stop is banned in the UK anyway.
Slots pay more at night or on paydayThe RNG has no clock-based or crowd-based setting. See do slots pay more at night.
A big win means the slot will go coldCompensated games are prohibited; the odds after a big win are identical.
Changing the stake resets my luckStake scales the payout, not the probability of each symbol landing.

The near-miss effect deserves a special mention. Two bonus symbols and a third just above the window feels like bad luck, but the RNG treated that screen exactly like any other loser. Our page on near misses explains why they appear and what UK rules allow. The broader fallacy is covered in why slots are never due a win.

Why the RNG matters to you as a player

Knowing how the RNG works is useful because it tells you which decisions actually affect your money. Your choice of game, RTP version and stake size matter, because they change the maths and the amount at risk. Timing, the number of spins since the last win, and when you press the button do not.

Randomness also means short sessions can land almost anywhere. A slot with a 96% return still costs about £4 for every £100 staked over the very long run, yet any given hour can end well up or well down. Treat that swing as part of the entertainment you are paying for, set a budget before you start, and use deposit limits and reality checks if you want a hard stop. For more on how this plays out over a session, see are online slots random and are online slots rigged.

  • RTP: the long-run share of stakes a slot’s maths returns, which the RNG delivers over millions of spins.
  • Hit frequency: how often a spin returns anything at all.
  • Dead spin: a spin that pays nothing, which is simply one of the RNG’s most common outcomes.
  • Demo mode: the same game and maths played with virtual credits, available after age verification.
  • UKGC: the regulator whose technical standards cover RNG testing.

For the full technical walkthrough, including seeding and how test houses examine output, read our guide to how a slot RNG works.

18+. Gambling should be entertainment that costs money, not a way to make it. Set a deposit limit before you play: how to set limits. Free, confidential help: National Gambling Helpline 0808 8020 133.

Frequently asked questions

What does RNG stand for in slots?

RNG stands for random number generator. It is the software that produces an unpredictable number for every spin, which the slot then maps onto reel positions to create the result you see. Every licensed online slot in Great Britain uses one, and the Gambling Commission requires its output to be acceptably random. The RNG only decides which symbols land; the slot’s paytable and maths model decide what that combination pays. Our guide to how online slots work shows where the RNG sits alongside reels, paylines and features.

Can an online casino change the RNG to make me lose?

No, not legally in Great Britain. The Gambling Commission’s technical standards ban adaptive or compensated games, which means nobody may intervene, automatically or manually, to change the odds while you play. Casinos can choose which approved RTP version of a game they offer, which affects the long-run return, but that choice is fixed and shown in the game’s help screen rather than switched on and off for individual players. If you suspect a problem, our page on whether casinos control slot wins explains what is and is not possible.

Does the time I press spin affect the result?

Not in any way you could use. The RNG generates numbers continuously and the game takes whatever is next when your spin request arrives, so the exact millisecond matters in theory but is impossible for a person to control or predict. In practice every press is an independent random draw with identical odds. That is also why stopping the reels early never changed anything, and slam stop has been banned on UK slots since October 2021. See our guide to UK slot game design rules for the related restrictions.

Are slot RNGs tested in the UK?

Yes. Before a slot can be offered to players in Great Britain, its RNG and maths are tested by an independent test house to show the output is random and the game pays according to its rules. The casino running the game is responsible, under its licence, for using the approved version. The Gambling Commission’s standard covering this is RTS 7, which sets out what acceptable randomness means. For the chain from studio to lobby, read how online slots are tested in the UK or how to check a slot is fair.

Is a pseudo-random number generator really random?

For practical purposes, yes. A pseudo-random generator uses an algorithm, so in principle the sequence could be reproduced if someone knew the exact algorithm and its seed value. That is why UK standards require it to be computationally infeasible to predict the next number without that knowledge, and why seeding must not introduce predictability. The output must also pass recognised statistical tests for uniform distribution. A player watching results has no way to spot a pattern. Our guide to how a slot RNG works covers seeding in more depth.

Why do I see so many near misses if the RNG is random?

Near misses appear because a slot has many more losing screens than winning ones, and plenty of those losers happen to show two bonus symbols with the third just out of view. UK standards forbid games from swapping one losing result for another losing result made to look closer to a win, so near misses must arise naturally from the reel strips. They feel meaningful but carry no information about the next spin. Our near miss entry and the guide to near misses in slots explain the psychology.

Does the RNG work the same in demo mode?

The demo usually runs the same game client and maths model, so the RNG behaves in the same way, but there are two caveats. The demo may use a different RTP version from the real-money game at a particular casino, and any figures you see over a few hundred demo spins are far too short a sample to tell you anything reliable. In Great Britain you must also pass age verification before playing a demo. See what is a slot demo and our free slots page for how demo play works.

18+ only. Please gamble responsibly.

Gambling can be addictive. Free, confidential help is available 24 hours a day from the National Gambling Helpline on 0808 8020 133. Get support from GamCare or NHS gambling support, or block yourself from all UK-licensed gambling sites with GAMSTOP.

This site contains adverts. We may earn commission when you sign up through our links. Advertiser disclosure.