Node:ICG, Next:LCG, Previous:EICG, Up:Definitions
y_n = a * inv(y_{n-1}) + b (mod p) n > 0
prng_new
):
"icg(p,a,b,y_0)"
prng_is_congruential
is TRUE
.
prng_can_seed
is TRUE
. prng_seed
will be used as
y_{n-1}
in the next call to get_next
.
prng_can_fast_sub
and prng_can_fast_con
are FALSE
.
If ICG(p,a,1) has period length p, then ICG(p,a*c^2,c) will have period length p, too. For recommended parameters see Table_ICG.