39#define SOPLEX_DEFAULT_LIN UINT32_C(123456789)
40#define SOPLEX_DEFAULT_XOR UINT32_C(362436000)
41#define SOPLEX_DEFAULT_MWC UINT32_C(521288629)
42#define SOPLEX_DEFAULT_CST UINT32_C(7654321)
45#define SOPLEX_RSTEP UINT64_C(1103515245)
46#define SOPLEX_RADD UINT64_C(12345)
118 return minimum * (1.0 - randnumber) + maximum * randnumber;
uint32_t getSeed() const
returns the initial seed shift
uint32_t xor_seed
random seed for XOR-shift RNS.
Random(uint32_t randomseed=0)
default constructor.
uint32_t mwc_seed
random seed Multiple-with-carry RNS.
void setSeed(uint32_t initshift)
initialize all seeds of the random number generator.
Real next(Real minimum=0.0, Real maximum=1.0)
returns next random number.
uint32_t cst_seed
random seed shifted for mwc_seed.
uint32_t seedshift
initial shift for random seeds.
uint32_t lin_seed
random seed for linear congruential RNS.
Real next_random()
executes KISS random number generator and returns a pseudo random Real value in [0,...
Everything should be within this namespace.
#define SOPLEX_DEFAULT_LIN
#define SOPLEX_DEFAULT_CST
#define SOPLEX_DEFAULT_XOR
#define SOPLEX_DEFAULT_MWC