nn::math::RandomGenerator Classclass RandomGenerator
The class for generating 32-bit random numbers using the linear congruential method.
The random number cycle is 2^32 - 1. When 4G random numbers are generated, the series of random numbers will cycle.
RandomGenerator
|
This is the default constructor. Nintendo recommends NOT using this normally. | |
|---|---|---|
~RandomGenerator
|
Destructor. | |
| SetSeed | Resets the pseudorandom number seed value. | |
Generate
|
Gets a pseudorandom number. A different random number can be obtained each time the function runs. |
CONFIDENTIAL