Go to the previous, next section.
#include <CNCL/ACG.h>
CN_ACG
CNRNG
None
CNRandom
CNACG
is the additive random number generator class. This class has
extremly long period lengths and provides a good independence.
Unfortunately, uniformity is not too great.
NOTE: More information about this method you can find at:
Knuth, Donald E.;The Art Of Computer Programming, Volume II;
Reading, Massachusetts; Addison-Wesley; page 26/27
Constructors:
CNACG(unsigned long seed = 0, int size = 55);
CNACG(CNParam *param);
CNACG
.
In addition to the member functions required by CNCL, CNACG
provides:
virtual unsigned long as_long32();
virtual bool has_long32();
virtual void reset();
Go to the previous, next section.