Enki::FastRandom Class Reference
[Some software bricks extracted from the An support library.]

#include <Random.h>

List of all members.


Detailed Description

A fast random generator.


Public Member Functions

 FastRandom (void)
 Construct the random generator, initialize with a seed of 0.
void setSeed (unsigned long seed)
 Set the seed.
unsigned long get (void)
 Get a random number between 0 and 2^31.
double getRange (double range)
 Get a random double between 0 and range, use get() internally.

Private Attributes

unsigned long randx
 value used to compute next pseudo-random value


The documentation for this class was generated from the following file:
Generated on Sun Mar 1 03:10:09 2009 for Enki by  doxygen 1.5.1