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.

Properties

static int Seed [set]
 the 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

Property Documentation

int Seed [static, set]

the random seed


The documentation for this class was generated from the following file:
Generated on Thu Apr 5 01:11:39 2012 for MyMediaLite by  doxygen 1.6.3