Function rgsl::types::rng::other::coveyou [] [src]

pub fn coveyou() -> RngType

This is the Coveyou random number generator. It is taken from Knuth’s Seminumerical Algorithms, 3rd Ed., Section 3.2.2. Its sequence is,

x_{n+1} = (x_n (x_n + 1)) mod m

with m = 232. The seed specifies the initial value, x_1.