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

Random (  )  [inline]

Default constructor.

Random ( int  seed  )  [inline]

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:
seed a seed value

The documentation for this class was generated from the following file:
Generated on Sun Nov 13 20:32:52 2011 for MyMediaLite by  doxygen 1.6.3