Random Class Reference

Random number generator. More...

#include <Random.h>

List of all members.

Static Public Member Functions

static void Init ()
 Initialize with seed obtained from time().
static void Init (unsigned int seed)
 Initialize with a specified seed.
static float Uniform (float floor=0.0f, float ciel=1.0f)
 Get a uniformly distributed random number in the range [floor, ciel).


Detailed Description

Random number generator.


Member Function Documentation

static void Random::Init ( unsigned int  seed  )  [static]

Initialize with a specified seed.

static void Random::Init (  )  [static]

Initialize with seed obtained from time().

static float Random::Uniform ( float  floor = 0.0f,
float  ciel = 1.0f 
) [static]

Get a uniformly distributed random number in the range [floor, ciel).

Note:
The random number generator must be initialized before use.


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:26 2007 for MetalWarriors by  doxygen 1.4.7