MyMediaLite  3.03
Public Member Functions | Static Public Member Functions | Properties
Random Class Reference

Random number generator singleton class. More...

List of all members.

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

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:
seedAn 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: