Open main menu

Bulbapedia β

Changes

Pseudorandom number generation in Pokémon

2 bytes added, 22:28, 6 March 2010
Mechanics
 
==Mechanics==
First the generator must have a seed, a number to start with. This number is usually a date &and time referring to the first time the algorithm is called during the usage of the device or the software's active session. Seeds are also occasionally derived from user input, as it is highly improbable to do the exact same thing more than once, making it appear 'random'.
 
This number is put through a complex algorithm and the result is formatted according to the needed context. The raw result then becomes the seed for any subsequent uses of the random generator. Therefore the nature of the generator is a recursive algorithm.
55,887
edits