Random Class Reference
Random number generator singleton class.
More...
List of all members.
Public Member Functions |
| Random (int seed) |
| Creates a Random object initialized with a seed.
|
| Random () |
| Default constructor.
|
Static Public Member Functions |
static Random | GetInstance () |
| Gets the instance. If it does not exist yet, it will be created.
|
static void | InitInstance (int seed) |
| Initializes the instance with a given random seed.
|
Detailed Description
Random number generator singleton class.
Constructor & Destructor Documentation
Creates a Random object initialized with a seed.
- Parameters:
-
| seed | An integer for initializing the random number generator |
Member Function Documentation
static Random GetInstance |
( |
|
) |
[inline, static] |
Gets the instance. If it does not exist yet, it will be created.
- Returns:
- the singleton instance
static void InitInstance |
( |
int |
seed |
) |
[inline, static] |
Initializes the instance with a given random seed.
- Parameters:
-
The documentation for this class was generated from the following file: