Open main menu

Bulbapedia β

Changes

Pseudorandom number generation in Pokémon

2 bytes added, 12:48, 5 December 2012
m
replaced: 0x → 0× (2)
Let ''Seed'' be a number between 0 and 0xFFFFFFFF or the ''Result'' of a previous call to the equation.
 
''Result = [(0x41C64E6D * Seed) + 0x60730×6073]''
 
This algorithm is used for the following:
The game also uses a different algorithm to alternate, reroll, or modify a previously randomly generated value. The algorithm works in the same nature, however the equation changes to:
 
''Result = [(0x6C078965 * Seed) + 0x10×1]''
 
This algorithm is used for the following: