LatMRG Guide
1.0
A software package to test and search for new linear congruential random number generators
|
Small functions to give the modulo and the coefficient of the LCG generator equivalent to a MWC generator with modulo b and coefficients e. More...
Functions | |
template<typename Int > | |
NTL::vector< Int > | LCGCoeff (const Int &b, const NTL::vector< Int > &e) |
Returns the coefficient for an MWC with coefficients in e and modulo b . More... | |
template<typename Int > | |
Int | LCGMod (const Int &b, const NTL::vector< Int > &e) |
Returns the modulo for an MWC with coefficients in e and modulo b . More... | |
Small functions to give the modulo and the coefficient of the LCG generator equivalent to a MWC generator with modulo b and coefficients e.
NTL::vector<Int> MWCEquiv::LCGCoeff | ( | const Int & | b, |
const NTL::vector< Int > & | e | ||
) |
Returns the coefficient for an MWC with coefficients in e
and modulo b
.
Int MWCEquiv::LCGMod | ( | const Int & | b, |
const NTL::vector< Int > & | e | ||
) |
Returns the modulo for an MWC with coefficients in e
and modulo b
.