18+Gambling is for adults. Set a limit before you play.Need help now? National Gambling Helpline 0808 8020 133 · Safer gambling
Slots.Games
Guide · Under the hood

Random Number Generators in Slots: How the RNG Works

What a slot RNG is, how pseudo-random numbers are seeded and mapped to reels, how virtual reels work, how games are tested, and why a slot is never due.

A random number generator, or RNG, is the software inside a slot that produces the unpredictable numbers which decide every result. When you press spin, the game takes numbers from the RNG and maps them onto its reels, so the outcome is fixed before the reels start to move.

This guide explains what kind of randomness slots use, how the numbers turn into symbols, how games are tested, and why the idea that a slot is “due” a win does not survive contact with how the RNG works.

True random and pseudo-random

There are two broad ways to get random numbers from a computer.

  • True random number generators measure something physically unpredictable, such as electrical noise.
  • Pseudo-random number generators (PRNGs) use a mathematical algorithm. Given a starting value, they produce a long sequence of numbers that looks and behaves random.

Most slots use a PRNG, often combined with sources of unpredictability for seeding. A PRNG is deterministic in principle: the same starting value would give the same sequence. In practice, a well-designed one used properly produces output that cannot be predicted by anyone outside the system, and that passes demanding statistical tests.

Seeding

The starting value for a PRNG is called the seed. If the seed were known and the algorithm were simple, the sequence could be reproduced, which is why seeding matters.

Game systems typically seed from unpredictable sources and may re-seed periodically. The algorithms used are chosen so that seeing some outputs does not let you work out the next ones. Testing labs examine how a game seeds and uses its generator, not just the numbers it spits out.

Cycling

Many slot RNGs are designed to cycle continuously, generating numbers in the background whether or not anyone is playing. When you press spin, the game takes whatever the generator produces at that moment.

The practical effect is that the outcome depends on timing far finer than any human could control. Pressing spin a fraction of a second later would have given a completely different result, and there is no way to know which result that would have been. That is why “timing your spins” is not a thing.

From numbers to symbols

The RNG produces numbers in a range. The game then maps each number to a result. In a traditional reel layout, that means a stop position on each reel strip.

A simple illustrative case: a reel strip with 64 positions. The game asks the RNG for a number from 1 to 64 and stops the reel at that position. If 2 of those 64 positions hold the top symbol, its chance of landing on the line is 2 in 64, or 1 in 32, on that reel.

Grid games and Megaways games use the same principle with more steps. The RNG might first decide how many symbols each reel shows, then which symbols fill them, then whether a feature triggers.

Virtual reels

In 1984 Inge Telnaes patented the idea now known as the virtual reel. Instead of each number mapping to one physical stop, the game maps a larger range of numbers onto the visible stops, with some stops getting more numbers than others.

Visible symbol Numbers mapped to it (out of 128) Chance per reel
Blank 60 60 / 128 ≈ 46.9%
Cherry 40 40 / 128 = 31.25%
Bar 24 24 / 128 = 18.75%
Seven 4 4 / 128 = 3.125%
Total 128 100%

The figures here are illustrative. The point is that the seven might look as common as any other symbol on the strip you see, but it lands far less often. This is what lets a slot offer large top prizes while keeping its RTP under control. It is also why counting symbols on the visible reels tells you very little about the odds. The history of the slot puts this change in context.

Testing and certification

In Great Britain, games offered by licensed operators have to meet the Gambling Commission’s technical standards for remote gambling and software, and be tested before release. Our guide on how slots are tested and regulated covers the framework.

Independent test houses do much of this work. Well-known names include Gaming Laboratories International (GLI), BMM Testlabs and eCOGRA. Broadly, testing of an RNG and game covers:

  • Statistical behaviour. Large samples of output are run through tests to check there are no patterns, biases or correlations.
  • Implementation. How the generator is seeded and used, and that results cannot be predicted or influenced.
  • Mapping. That numbers are turned into results exactly as the game’s maths says they should be.
  • Return. That the game’s theoretical RTP matches the documented figure.
  • Change control. That the version running live is the version that was tested.

Testing confirms a game is fair in the sense of being random and matching its stated maths. It does not mean a game is good value: a properly random game still has a house edge.

Why “due” is a myth

The central property of a good RNG is independence. Each spin draws a fresh result from the same probabilities. The game does not keep a ledger of what it owes.

Imagine a feature that triggers, on average, once in 200 spins. After 400 spins with no feature, it is natural to feel one must be close. It is not. On spin 401 the chance is still 1 in 200, exactly as it was on spin 1. Long gaps are a normal part of random sequences, and so are clusters.

The same logic applies in reverse. A game that has just paid a big prize is not “cold” or less likely to pay again. It has no memory of having paid. Our slot myths guide takes apart the rest of this family of beliefs.

What the RNG means for you

Because results are random and independent, there is no pattern to find, no system to apply and no best time to play. The only things you control are which game you choose, how much you stake and how long you play. Those decide how much you are likely to spend, which is why setting limits before you start matters more than anything else.

The short version

  • Slots use random number generators, usually pseudo-random algorithms, to decide each result.
  • The seed and the way the generator is used are designed so results cannot be predicted.
  • Many RNGs cycle continuously, so the outcome depends on timing no player can control.
  • Virtual reels map more numbers to some symbols than others, so visible reels say little about odds.
  • Independent labs test randomness, implementation and RTP before games go live in Great Britain.
  • Every spin is independent: no slot is ever due.

Questions people ask

Is a slot RNG truly random?

Most slots use a pseudo-random number generator, an algorithm that produces sequences which pass statistical tests for randomness and cannot be predicted in practice. Testing labs check that the output behaves as random and that the game maps it to results correctly.

Does the RNG keep running when nobody is playing?

Many generators are designed to keep producing numbers continuously, so the result depends on exactly when a spin is requested. Either way, the outcome cannot be predicted or timed by a player.

Can the casino control the RNG to make me lose?

A licensed operator cannot alter how a certified game produces results. The game's maths fixes the probabilities, and changes to approved games have to go through the testing and approval process.

Are online slots more random than land-based ones?

Both use random number generators. The difference is mainly where the RNG runs, on a server for online games and inside the cabinet for most land-based machines, and which regulatory standards apply.

Next guide: Slot Jackpots Explained: Progressive, Fixed and Must-Drop