"RNG" — short for random number generator — is one of the most used words in gaming. It decides whether you land a critical hit, which card you draw, what loot drops from a boss and which room comes next in a roguelike. It is also blamed for nearly every lost run. So what is actually happening behind the scenes?
Computers can't really roll dice
Most games use a pseudo-random number generator (PRNG). It is an algorithm that takes a starting number, called a seed, and produces a long sequence of numbers that look random. The same seed always produces the same sequence. That is why many roguelikes let you share a seed: two players with the same seed get the same map and the same rewards.
True randomness feels wrong
Humans are bad at judging randomness. A 90% chance that misses twice in a row feels broken, even though it will happen regularly over thousands of attempts. Because of that, many designers deliberately make games less random than the numbers suggest:
- Pity timers: the chance of a rare drop rises every time you miss it.
- Shuffle bags: outcomes are drawn without replacement, like a deck of cards, so streaks are limited.
- Hidden bonuses: some strategy games quietly boost displayed hit chances because players expect high percentages to land.
Input vs. output randomness
Designers often talk about two kinds of luck:
| Type | What it means | Example |
|---|---|---|
| Input randomness | Random things happen before you decide, and you react. | Drawing a hand in Balatro, a new map layout |
| Output randomness | You decide, then luck decides the result. | A 70% hit chance, a loot roll |
Games that lean on input randomness tend to feel fairer, because skill is about adapting. Too much output randomness can make players feel their choices don't matter.
Where randomness meets money
RNG becomes controversial when it is tied to real spending. Loot boxes, gacha banners and case openings use the same random systems as a crit roll, but with a price tag attached. We look at that side of gaming in loot boxes, gacha and skin economies, and at games that make chance itself the core mechanic in our Luck & Chance section.