You can know more about editing the articles in the wiki by reading guidelines.

Goldeneye's RNG

From Speedrunwiki.com
Revision as of 15:56, 4 July 2021 by BurnsBA (talk | contribs) (create)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The updating routine starts running right after the intial values has been set and will continue as long as the game is on. It's not really important to understand the line. However, there's a very interresting fact we can derive from it, the RNG depends only on itself and nothing else. Most RNG's work this way, using recursion, so it's not a huge suprise. But if the RNG is so deterministic, and not directly dependent on player input, shouldn't a random event occuring on a certain frame give the same result each time?

Well, the reason GE is so unpredictable is that the updating routine isn't being run once per frame, rather, it depends on lag and can vary ALOT. During the intro, the RNG is usually updated about 3 times per frame. But on a very laggy frame it can update thousands of times in a single frame. Also, when seeds are taken for random events such as Dr. Doak or frigate hostages, any one of those thousands of values calculated between frames can be used. So previous actions done by the player definately matter when determining randomness since they affect lag, even though the exact sequence of random numbers is completely predictable.

So essentially, it's possible for us to insert the updating routine in a program like excel and use it to calculate the entire sequence of random numbers that a given version of GE will use. However, it's most likely useless knowledge since humans (or even TAS) can't utilize it.

External Links