Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Games & Chance 4 min read

Speedrun RNG Manipulation

How gamers exploit pseudo-random number generators.

A linear congruential generator (LCG) produces “random” numbers via a simple formula. If you know the parameters, you can predict every output.

The LCG formula

Most classic game RNGs use this recurrence.

Xn+1=(aXn+c)mod  mX_{n+1} = (aX_n + c) \mod m

Typical game RNG

  1. 1

    Step

    X₀ = 42 (seed)

  2. 2

    Step

    X₁ = (1103515245 × 42 + 12345) mod 2³¹

  3. 3

    Step

    Result is deterministic

Answer

Same seed gives same sequence

Manipulating the seed

By performing specific in-game actions in a set order, speedrunners control the seed or the number of RNG calls, ensuring they get the drops or events they need.

The formula behind it

Modular Arithmetic

a≡b(modm)a \equiv b \pmod{m}
See the full formula, variables and more examples

The takeaway

Game RNGs aren’t truly random — and speedrunners exploit that determinism brilliantly.

Back to all stories