Go to the previous, next section.
#include <CNCL/MLCG.h>
CN_CNMLCG
CNRNG
None
CNRandom
CNMLCG
is a multiple linear congruence random number generator
class combining the results of two different CNLCGs.
Constructors:
CNMLCG();
CNMLCG(long seed1, long seed2);
CNMLCG(CNParam *param);
CNMLCG
with two seeds, seed1
and
seed2
. The default constructor sets both seeds to 0.
In addition to the member functions required by CNCL, CNMLCG
provides:
virtual unsigned long as_long32();
virtual bool has_long32();
virtual void reset();
void seed(unsigned long s);
s
and the second one
to s + 2147483561
.
void seed_internal(unsigned long, unsigned long);
Go to the previous, next section.