| Name |
Description |
Seed |
RNG seed data type |
MultModM |
Compute (a*s + c) % m. m must be < 2^35. Works also for s, c
< 0 |
MatVecModM |
MatVecModM returns v = A*s % m. Assumes that -m < s[i] <
m. Works even if v = s. |
MatMatModM |
MatMAtModM Returns C = A*B % m. Work even if A = C or B = C or
A = B = C. |
MatTwoPowModM |
MatTwoPowModM compute matrix B = (A^(2^e) % m); works even if A
= B |
MatPowModM |
MatPowModM compute matrix B = A^n % m ; works even if A =
B |
U01 |
Uniform random number generation function |
U01d |
Uniform random number generation function, with increased
precission |
CheckSeed |
Checks correctness of a seed. |
SaveSeed |
saves seed to file CMRGSeed.txt |
ReadSeed |
reads the current seed from file CMRGSeed.txt. If the file does
not exists, saves the default value
{12345,12345,12345,12345,12345,12345} |