name: Random

synopsis:

g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_system.a

#include <Random.h>

Random();
boolean seed(long seed);
double get();
quick start:

Random rand;
rand.seed(27);
double value = rand.get();
description:

The Random class implements a variety of random number generators, including a uniform random number generator based on a subtractive method, and a Gaussian random number generator that is based on a transformation of the uniform random number generator. An interface to the standard system random number generator is supplied also.

This class has been carefully designed to allow users to maintain independent random number generators by instantiating separate classes. However, a global default generator is used (by default) for applications in which all random numbers should be drawn from the same source.

The algorithms implemented here are based on original work by Knuth, The Art of Computer Programming, and parallel implementations described in: This resource was chosen because the uniform random number generator is portable, fast, and more accurate than the ANSI-standard generator supplied on most systems. The Gaussian generator is extremely fast as well.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: