Function rgsl::types::rng::other::randu

source ·
pub fn randu() -> RngType
Expand description

This is the IBM RANDU generator. Its sequence is

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

with a = 65539 and m = 2^31. The seed specifies the initial value, x_1. The period of this generator was only 2^29. It has become a textbook example of a poor generator.