Pseudorandom number generation: Difference between revisions

m
no edit summary
mNo edit summary
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
A '''pseudorandom 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.
A '''pseudorandom number generator''' is an electronic device or software's attempt at creating a random number. Just as rolling a die 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.


==Mechanics==
==Mechanics==
Line 32: Line 32:


This algorithm is used for the following:
This algorithm is used for the following:
* Shiny [[Pokémon Ranger (game)|Pokémon Ranger]] {{p|Manaphy}} [[egg]] restriction.
* Shiny [[Pokémon Ranger (game)|Pokémon Ranger]] {{p|Manaphy}} {{pkmn|Egg}} restriction.
* Determining the species of a [[Pokémon outbreak|Pokémon swarm]].
* Determining the species of a [[Pokémon outbreak|Pokémon swarm]].
* Determining the Pokémon in the [[Great Marsh]].
* Determining the Pokémon in the [[Great Marsh]].
* Determining the Pokémon in the [[Trophy Garden]].
* Determining the Pokémon in the [[Trophy Garden]].
* [[Mystery Gift]] shininess restriction for Type 1 [[Wonder Card]] Pokémon (currently all released with variable [[Natures]]).
* [[Mystery Gift]] shininess restriction for Type 1 [[Wonder Card]] Pokémon (currently all released with variable [[Nature]]s).


===Mersenne Twister (MTRNG)===
===Mersenne Twister (MTRNG)===
Line 70: Line 70:
[[Category:Game mechanics]]
[[Category:Game mechanics]]


[[de:RNG]]
[[de:Random Number Generator]]
 
[[fr:RNG]]
[[fr:RNG]]
[[it:Generazione di numeri pseudo-casuali in Pokémon]]
[[it:Generazione di numeri pseudo-casuali in Pokémon]]
[[ja:乱数ポケモン]]
[[ja:乱数ポケモン]]
[[zh:伪随机数发生器]]
[[zh:伪随机数发生器]]