#include <CNCL/RNG.h>
CN_RNG
CNObject
CNACG, CNFiboG, CNFileG, CNLCG, CNMLCG, CNTausG
CNRandom
CNRNG
is the abstract base class for all CNCL random number
generators. It defines the common interface.
Constructors:
CNRNG();
CNRNG(CNParam *param);
CNRNG
.
In addition to the member functions required by CNCL, CNRNG
provides:
unsigned long as_long();
virtual unsigned long as_long32() = 0;
CNRNG
class). The result is an unsigned integer
in the range 0 ... 2^32-1 provided the class is able to produce 32bit
random numbers.
virtual bool has_long32() = 0;
virtual void reset() = 0;
float as_float();
double as_double();
float
or double
value.
virtual void seed(unsigned long s);
s
as_long32() numbers.
Go to the first, previous, next, last section, table of contents.