nn::math::RandomGenerator Class

Syntax

class RandomGenerator

Description

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.

Member Functions

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.

Revision History

2012/01/11
Initial version.

CONFIDENTIAL