Pseudorandom number generation: Difference between revisions

(Added generation V.)
Line 38: Line 38:
As the initial seed is predictable, the "random" numbers are predictable as well. {{game|Emerald}}'s initial seed is always 0. The Generation IV and V games use the [[Nintendo DS]]'s date, time, and delay between starting the game and pressing "Continue" to generate the initial seed.
As the initial seed is predictable, the "random" numbers are predictable as well. {{game|Emerald}}'s initial seed is always 0. The Generation IV and V games use the [[Nintendo DS]]'s date, time, and delay between starting the game and pressing "Continue" to generate the initial seed.


The random number generator is used to determine a Pokémon's [[personality value]] and [[IV|Individual values]] when it is encountered or received. After the initial seed is discovered, the player can control a Pokémon's characteristics with frame precise timing. There are several methods used to create a Pokémon's characteristics - for instance, a bred Pokémon and a stationary Pokémon's characteristics are generated through different methods.
The random number generator is used to determine a Pokémon's [[personality value]] and [[IV|Individual values]] when it is encountered or received. After the initial seed is discovered, the player can control a Pokémon's characteristics with frame precise timing (frame increases by 60 frames per second in Pokémon Emerald). There are several methods used to create a Pokémon's characteristics - for instance, a bred Pokémon and a stationary Pokémon's characteristics are generated through different methods.


There are some limitations. As a player's Trainer ID and Secret ID determine a Pokémon's shininess, shiny Pokémon generated through certain methods can only have certain Individual Values. Also, it is not possible to manipulate the nature of a Pokémon obtained through a [[Wonder Card]].
There are some limitations. As a player's Trainer ID and Secret ID determine a Pokémon's shininess, shiny Pokémon generated through certain methods can only have certain Individual Values. Also, it is not possible to manipulate the nature of a Pokémon obtained through a [[Wonder Card]].
2

edits