What a random number generator is
A random number generator (RNG) is the piece of software that produces the unpredictable numbers a slot uses to decide each result. Online slots almost always use a pseudo-random number generator: an algorithm that, from a starting value called a seed, produces a long sequence of numbers that pass statistical tests for randomness and cannot practically be predicted.
“Pseudo” sounds like a weakness, but it isn’t one in practice. A well-designed generator is seeded and re-seeded from sources that an outsider can’t observe, and its output is so long and evenly spread that nobody can work out where in the sequence it is. Some systems also use hardware sources of randomness, such as electronic noise, to feed the seed.
How slot RNG works on a single spin, step by step
The exact architecture varies between developers, but the logic of a typical online spin looks like this:
- You press spin. The game client sends your stake to the game server.
- The server draws random numbers. For a five-reel game it might take one number per reel; games with changing reel heights or cascades draw more.
- Each number is scaled. A huge raw number is converted to a smaller range – for example, a position from 1 to 80 on a reel strip with 80 stops.
- Positions become symbols. Each reel strip is a fixed list of symbols, so position 37 on reel one might be a wild and position 38 a low-paying card symbol.
- The grid is evaluated. The server checks the visible window against the paylines, ways or cluster rules and the paytable, and calculates any win.
- The result is sent back. Your balance is updated, and the client plays the reel animation that reveals an outcome already decided.
Reel strips, weighting and where the RTP comes from
The RNG makes every position on a reel strip equally likely. What makes a slot generous or stingy is the design of those strips: how many of each symbol they contain, how often scatters appear, and how the paytable rewards each combination. Two games with identical RNGs can have very different RTPs.
| Symbol | Stops on reel | Chance per spin |
|---|---|---|
| Low card symbols | 30 | 60% |
| Mid-paying symbols | 14 | 28% |
| Top symbol | 4 | 8% |
| Wild | 1 | 2% |
| Scatter | 1 | 2% |
In this made-up example, a scatter appears on any given reel 1 time in 50. If three scatters on reels one, three and five trigger free spins, and each of those reels has one scatter in 50 stops, the chance of that exact trigger is 1 in 125,000 before you count other scatter positions in the visible window. Real games are far more complex, but the principle is the same: the developer tunes symbol counts and pay values until the long-run return equals the target RTP.
Developers who offer several RTP versions of a game typically do it by changing these weightings or prize values, not by touching the RNG. That is also why volatility is a design choice: putting more of the return into rare features makes a game swingier without changing its average.
How RNG works in Megaways, cascades and bonus rounds
Modern mechanics simply ask the generator more questions per spin.
- Megaways: extra draws decide how many symbols each reel shows on that spin, which sets the number of ways to win.
- Cascading reels: after winning symbols are removed, new random draws fill the gaps, repeating until no new win forms.
- Random features: wild drops, multipliers or mystery symbol reveals are triggered or valued by their own draws.
- Pick-style bonuses: the prize behind each choice is typically settled by the RNG, so the option you tap doesn’t change your expected return.
Worked example: why 1,000 spins rarely match the RTP
Because each spin is an independent random draw, short sessions scatter widely around the long-run average. A little statistics shows how widely. The figures here are illustrative rather than taken from any specific game.
Say you play 1,000 spins at 20p on a slot with a 96% RTP. You stake £200 in total, so the expected return is £192 and the expected loss £8. Now suppose the game is fairly volatile, with a standard deviation per spin of about eight times the stake, or £1.60. Spread across 1,000 independent spins, the session’s standard deviation is £1.60 × √1,000, which is about £50.
| How often (roughly) | Total returned | Net result |
|---|---|---|
| About two sessions in three | £142 to £242 | −£58 to +£42 |
| About 19 sessions in 20 | £92 to £292 | −£108 to +£92 |
| The long-run average | £192 | −£8 |
Slot results are lopsided rather than a neat bell curve, so in practice many sessions finish below the average and a few large wins pull it up. The point stands: an £8 expected loss can easily become a loss of £50 or more over one session, and a profit in one session says nothing about the next. Our hit frequency entry explains why some games feel steadier than others.
RNG slots vs live casino and land-based games
Not every casino game relies on software randomness. Knowing which does helps make sense of how each one is checked.
| Game type | Source of randomness | How fairness is checked |
|---|---|---|
| Online slots and RNG table games | Software generator on the game server | Test house review of code and output before release, plus ongoing monitoring |
| Live roulette and game shows | Physical wheel, ball or cards, filmed in a studio | Equipment checks, studio procedures and the published game rules |
| Machines in UK venues | Electronic generator inside or behind the cabinet | Machine standards and testing for the relevant category |
| Live blackjack and baccarat | Shuffled physical cards in a shoe | Dealing procedures and shuffling controls |
Whichever source is used, the game’s rules and paytable fix the house edge. A live casino table is no more likely to pay than an RNG version with the same rules, and the comparison in our guide to online vs land-based slots follows the same logic.
Inside the algorithm: seeds, sequences and scaling
A pseudo-random generator is a formula that takes its current internal state, mixes it, and produces both an output number and a new state. Feed it the same seed and it will always produce the same sequence, which is why the seed has to come from something nobody outside can observe or guess.
A toy example makes the idea concrete. Imagine a deliberately tiny generator that multiplies the previous value by 5, adds 3 and keeps the remainder after dividing by 16. Start it from a seed of 7 and it produces 6, 1, 8, 11, 10, 5 and so on. The sequence looks jumbled, but it repeats after 16 steps and anyone who sees two outputs could predict the rest, which makes it useless for gambling.
Real gaming systems rely on well-studied algorithms instead, often of the cryptographically secure kind also used in online banking and security software. Their internal state is vast, their output is mixed so thoroughly that past numbers reveal nothing useful, and the test house examines exactly how they are implemented and seeded.
| Property | Toy example | Production generator |
|---|---|---|
| Internal state | One number from 0 to 15 | Hundreds or thousands of bits |
| Period before repeating | 16 steps | So long it never repeats in practice |
| Predictable from outputs? | Yes, after two values | No, by design and by testing |
| Seeding | A fixed number | Unobservable sources, often re-seeded |
The last step is scaling. A generator might output numbers in the billions, but a reel strip has perhaps 80 stops. Simply taking the remainder after dividing by 80 can make lower positions very slightly more likely when the range doesn’t divide evenly, an effect called modulo bias. Well-built games avoid it, usually by discarding out-of-range raw values before scaling, and UK standards say scaling must not weaken the randomness of the result.
Is a bonus round decided the moment it triggers?
Developers take two broad approaches to features. In some games, each free spin or pick inside the bonus is a fresh random draw made as you go, exactly like base-game spins. In others, the whole feature outcome is generated on the server at the moment it triggers, and the animated round simply plays it out over several screens.
- Drawn as you go: each free spin is independent, so a long feature is a series of separate results, each with its own chance of retriggers or multipliers.
- Decided at trigger: the server settles the total at once, which also makes it simple to restore the round if your connection drops part-way through.
- Pick-and-click choices: in both cases, which box or tile you select doesn’t change the expected prize; the values are set by the game’s maths.
Players can’t tell which method a game uses from the screen, and it makes no difference to the odds. The feature’s average value is fixed by design and already counted in the published RTP. What it does explain is why a pick-and-click bonus is better enjoyed as a reveal than treated as a test of judgement.
Common misunderstandings about slot RNGs
- “The casino can tighten the RNG during my session.” The RTP version is part of the game configuration loaded when you open it, and UK standards stop probabilities changing while a game is in play outside its rules. Our guide to checking a slot’s RTP shows how to see which version you are on.
- “Mobile and desktop use different generators.” The draw happens on the game server, so the device only displays the outcome.
- “A free-play demo is set to pay more.” Demos are meant to show the game’s real behaviour, and in Great Britain they can only be played after age verification, as our guide to demo slots and age checks explains.
- “Near misses mean a win is coming.” Two scatters and a blank is just one more random result; the next spin is drawn independently.
What UK standards require of a slot RNG
The Gambling Commission’s technical standard RTS 7 sets the rules for random outcomes in online gaming. In plain English, it requires that:
- outcomes are acceptably random, which can be shown with generally accepted statistical tests;
- adaptive or ‘compensated’ games, which alter results to steer towards a payout target, are not permitted;
- random numbers are used in the order they are produced and not thrown away to change an outcome;
- near-miss losses can’t be substituted for other losing outcomes to mislead players;
- rules, payouts and outcome probabilities don’t change while a game is available, except as its rules allow;
- the result and the value of any win are displayed clearly.
The guidance adds that output should be uniformly distributed, unpredictable, should not cycle, and should not synchronise across instances. Seeding and scaling must not weaken any of this. Before release, a Commission-approved test house reviews the RNG’s documentation and source code and runs statistical tests on its output, and new games and generators can’t go live until that work is complete.
What RNG means for you as a player
- Nothing you do changes the draw. Timing your click, switching devices or waiting a minute between spins has no effect.
- Previous spins don’t matter. The generator has no stake in your session history; read our slot myths page for the beliefs this rules out.
- The RTP is still real. Randomness decides individual spins, but the reel design means the long-run return drifts towards the stated figure across millions of spins.
- Short sessions are mostly luck. Over a few hundred spins, the gap between your result and the RTP can be large in either direction.
For the regulatory side of fairness, including live RTP monitoring and annual audits, see our answer to whether online slots are rigged. For a broader primer, our how slots work page covers the basics.
Frequently asked questions
What does RNG stand for in slots?
RNG stands for random number generator, the software that produces the unpredictable numbers a slot uses to decide every result. When you press spin, the game takes numbers from the generator, scales them to positions on its reel strips and checks the resulting symbols against the paytable. Online slots use pseudo-random generators: algorithms seeded from sources nobody can observe, whose output passes statistical tests for randomness. Our glossary entry on the RNG gives a shorter definition, and how slots work covers the wider picture.
Is the slot result decided before the reels stop?
Yes. On a UK online slot the result is calculated on the game server as soon as your spin request arrives, before any reel starts moving on screen. The animation that follows is a reveal of an outcome that has already been settled and recorded. That is why stopping the reels early never changed anything, and why the UK’s minimum 2.5-second spin time and ban on slam-stop exist to slow play rather than to affect fairness. The near miss entry explains how UK rules treat outcomes that look close.
Does the RNG decide a slot’s RTP?
No. The RNG only supplies randomness, making every position on each reel strip equally likely to be chosen. The RTP comes from the game design: how many of each symbol sits on the strips, how often features trigger, and how much the paytable pays for each combination. Two slots using the same generator can have very different returns. When a developer releases several RTP versions of one game, it changes these weightings or prize values. Our RTP and volatility guide explains what the figure means for a session.
Can anyone predict a slot’s RNG?
Not in practice, for a properly built and tested generator. Production RNGs have enormous internal states and periods, are seeded from sources an outsider can’t see, and are designed so that knowing past outputs gives no useful clue about future ones. UK technical standards require output that is unpredictable and doesn’t cycle or synchronise, and an approved test house checks this before a game goes live. Systems, apps or videos claiming to predict slot results don’t work. Our slot myths page covers similar claims.
Are online slot RNGs tested in the UK?
Yes. Gambling Commission licensees must have their random number generators and games tested by an approved test house before release. The testing reviews documentation and source code and runs statistical checks on large samples of output to confirm the results are random and that the game pays in line with its design. Operators also monitor game performance once a slot is live and report to the regulator. Our answer to whether online slots are rigged explains this ongoing oversight in more detail.
Do mobile slots use a different RNG?
No. On UK online slots the random draw takes place on the game server, not on your device, so a phone, tablet and computer all receive results from the same generator and the same game configuration. The device only displays the outcome and sends your stake. Any difference you notice between platforms is in layout, sound or loading speed rather than the odds. The same stake limits and design rules apply wherever you play. Our guide on how to play slots on mobile covers the practical differences.
Do demo slots use the same RNG as real money slots?
Demo versions are designed to reflect the real game’s maths and behaviour, so they normally use the same logic with play credits instead of money. They are meant to show how often features trigger and how volatile a game feels, and they aren’t supposed to be set up to pay more. In Great Britain, demo games can only be played once your age has been verified, a rule in place since 2019. The guide to demo slots and age verification explains why.
Why don’t my results match the slot’s RTP?
Because RTP is a long-run average measured across millions of spins, and a single session is far too short to settle near it. On a 96% RTP game, 1,000 spins at 20p have an expected loss of £8, but a volatile game can easily swing that by £50 or more either way. Most sessions finish below the average, and occasional large wins lift it. Higher volatility widens the spread. A session that pays well, or badly, says nothing about the next one.
What is a seed in a random number generator?
A seed is the starting value that a pseudo-random generator uses to begin its sequence. Because the algorithm is deterministic, the same seed always produces the same series of numbers, so the seed must come from something unobservable, such as fine timing data or electronic noise. Slot RNGs are typically seeded securely and may be re-seeded regularly so that nobody can reconstruct their position. UK standards say seeding must not weaken the randomness of results, and test houses review how it is done.
Do slots run in hot and cold cycles?
No. Each spin on a UK-regulated slot is an independent draw, so a game doesn’t warm up after a long run of losses or cool down after a big win. Gambling Commission standards specifically prohibit ‘compensated’ games that alter outcomes to steer towards a payout target. Streaks happen, but they are a normal feature of randomness rather than a pattern you can use. Thinking a slot is ‘due’ can lead to chasing losses, which is worth avoiding. The bankroll management guide covers setting limits before you play.
Is a slot bonus round decided when it triggers?
It can be, depending on the developer. Some games generate the whole feature result on the server at the moment the bonus triggers and then play it out as an animation; others draw each free spin or pick as you go. Both approaches have the same expected value, which is fixed by the game’s design and included in its published RTP. Which box you choose in a pick game doesn’t change the average prize either. The glossary entry on the bonus round covers the common formats.