Open main menu

Bulbapedia β


Pseudorandom number generation in Pokémon

11 bytes removed, 11:07, 26 October 2011
no edit summary
{{move|Pseudorandom number generation in Pokémon}}
A '''pseudo-random number generator''' is an electronic device or software's attempt at creating a random number. Just as rolling a dice is not 'random' (being determined by factors such as force and angle of the throw, as well as friction), computers cannot be truly 'random'. In order to generate 'random' events in games and other forms of software, they must get as close to looking it as they can. There are limitless ways of accomplishing this. The degree of apparent randomness depends on the ability to predict the next result of the algorithm.
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.
==In the Pokémon games==
Let ''Seed'' be a number between 0 and 0xFFFFFFFF or the ''Result'' of a previous call to the equation.
* Generate the [[individual values]] of a wild encountered Pokémon.
* Determining the species of a wild Pokémon.
* Determining the lottery[[Pokémon Lottery Corner]] lucky number.
== Alternative pseudo-random number generator ==
==Alternative pseudo-random number generator==
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:
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 - forcharacteristics—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]].
In the Pokémon fandom, RNG abuse is slightly controversial. Proponents note that RNG abuse does not require a third-party device and that RNG abused Pokémon can be obtained through normal gameplay. In addition, RNG abused Pokémon have been used at the [[Pokémon_Organized_Play_(TCG)#Video_Game_Championships{{DL|Play! Pokémon|Video Game Championships]]}}, an official tournament. However, some players believe that RNG abuse is cheating, as the action of picking a Pokémon's characteristics is similar to using a program like[[cheating]] Pokésavdevice.
==External Linkslinks==
* {{wp|Pseudorandom number generator}}
* [ Smogon's explanation and guide on Pokémon Emerald RNG Abuse]