[][src]Module rand_krull::lcg

Functions

get_iterations

LCG iteration is state <- state * m + p. Returns the number of iterations between origin state and the given state. Assumes (m, p) is full period.

get_jump

LCG iteration is state <- state * m + p. Returns the (m, p) pair that iterates by n steps at once. Assumes (m, p) is full period.

get_state

LCG iteration is state <- state * m + p. Returns state after the specified number of iterations from the origin state. Assumes (m, p) is full period.