56 {
a=new_a;
c=new_c;
m=new_m;}
void set_LFGParms(int new_p, int new_q)
This function sets the parametes for the LFG random number generator.
long int a
This are the two parameters that control the LCG random generated.
Mdouble get_LCG(Mdouble min, Mdouble max)
This is a basic Linear Congruential Generator Random.
Mdouble get_RN(Mdouble min, Mdouble max)
This is a random generating routine can be used for initial positions.
void randomise()
sets the random variables such that they differ for each run
This is a class that generates random numbers i.e.
Mdouble get_LFG(Mdouble min, Mdouble max)
This is a Laggend Fibonacci Generator.
void seed_LFG()
This seed the LFG.
int type
This is the type of random number generator.
Mdouble test()
This function tests the quality of random numbers, based on the chi-squared test. ...
void set_LCGParms(int new_a, int new_c, int new_m)
This functions set the parameters for the LCG random number generator. It goes multiplier, addition, mod.
void set_RNtypeLCG()
Make the random number generator based on LCG.
std::vector< Mdouble > random_seed_LFG
This is the seeds required for the LFG.
void set_RNtypeLFG()
Make the random number generator based on LFG.
long int p
This are the parameters that control the LFG random generator.
unsigned long int random_seed_LCG
This is the initiall seed of the RNG.
void set_RandomSeed(Mdouble new_seed)
This is the seed for the random number generator.