MyMediaLite
3.03
|
Random number generator singleton class. More...
Public Member Functions | |
Random () | |
Default constructor. | |
Random (int seed) | |
Creates a Random object initialized with a seed. | |
Static Public Member Functions | |
static Random | GetInstance () |
Gets the instance. If it does not exist yet, it will be created. | |
Properties | |
static int | Seed [set] |
the random seed |
Random number generator singleton class.
Random | ( | ) | [inline] |
Default constructor.
Random | ( | int | seed | ) | [inline] |
Creates a Random object initialized with a seed.
seed | An integer for initializing the random number generator |
static Random GetInstance | ( | ) | [inline, static] |
Gets the instance. If it does not exist yet, it will be created.
int Seed [static, set] |
the random seed