Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Generation III Glitch Discussion

Emerald and Platinum's broken pseudorandom number generator - Page 1

Emerald and Platinum's broken pseudorandom number generator

Posted by: Torchickens
Date: 2009-07-29 13:52:05
Contrary to some belief nothing in theory is truely random and to generate a 'random' number on a program it is dependable over some environmental factor either in game or less common out of game such as the half-life of particles being some factor for randomness but the more common method on the pokemon games to generate a pseudorandom number depends on different bytes which are most likely not going to be the same all the time and sometimes more common variables some which are also pseudorandom like what trainers appear in the battleground.

I'm not very mathmatical but apparantly in Emerald and Platinum the game will not reseed a random number after the game has started up when regarding individual values of pokemon and only reseeds a new 'random' value when the game has begun so this possibly means that we could 'choose' the IVs of the next pokemon we encounter by performing the same type of activity on the title screen as we did earlier, according to smogon surprisingly there are lots of legendaries with 'cloned' IVs meaning maybe if we just kept mashing the A button if we spent the same amount of time as other soft resets we could get the exact same IVs.

I'm not sure if I'm understanding this right though, see here
http://www.smogon.com/forums/showthread.php?t=23986

Re: Emerald and Platinum's broken pseudorandom number generator

Posted by: Zowayix
Date: 2009-07-29 20:40:43
Emerald's PRNG is the only broken one, not Platinum. DPPt has been cracked, though.