Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Random Class Reference

#include <Random.h>

List of all members.

Public Member Functions

Static Public Member Functions


Constructor & Destructor Documentation

Random::Random  ) 
 

Definition at line 4 of file Random.cpp.

Random::~Random  )  [virtual]
 

Definition at line 8 of file Random.cpp.


Member Function Documentation

double Random::getDouble  )  [inline, static]
 

Returns random double in [0,1).

Definition at line 20 of file Random.h.

float Random::getFloat  )  [inline, static]
 

Returns random float in [0,1).

Definition at line 14 of file Random.h.

Referenced by RandomController::advanceTime(), and RandomController::RandomController().

unsigned int Random::getInt unsigned int  n  )  [inline, static]
 

Returns unsigned int in [0,n]

Definition at line 25 of file Random.h.

void Random::setSeed unsigned int  seed = 0  )  [static]
 

Sets the random number generator seed. If seed is 0, sets seed based on current time.

Definition at line 12 of file Random.cpp.

Referenced by RandomController::RandomController().


The documentation for this class was generated from the following files:

Thyrix homepageUsers' guide

(C) Arxia 2004-2005