Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

An::FastRandom Class Reference

#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 Mon Oct 24 17:30:34 2005 for liban by  doxygen 1.4.2