Go to the previous, next section.
#include <CNCL/FiboG.h>
CN_FIBOG
CNRNG
None
CNRandom
CNFiboG
is the Fibonacci random number generator class.
The main advantage of this method can be seen in a combination of a simple mathematical formula and a period length sufficient enough for physical simulation runs. Nevertheless, it still represents a pseudo random number generator. Thus a non-ideal correlation can be expected.
Constructors:
CNFiboG(CNParam *param);
CNFiboG(unsigned long init = 54217137);
CNFiboG
with a 97 elements circular queue and initial
seed.
In addition to the member functions required by CNCL, CNFiboG
provides:
virtual unsigned long as_long32();
virtual bool has_long32();
virtual void reset();
void seed_internal(unsigned long *ulp);
*ulp
, an array of 98 values.
Go to the previous, next section.