Function rgsl::types::rng::unix::rand
[−]
[src]
pub fn rand() -> RngType
This is the BSD rand generator. Its sequence is
x_{n+1} = (a x_n + c) mod m
with a = 1103515245, c = 12345 and m = 231. The seed specifies the initial value, x_1. The period of this generator is 231, and it uses 1 word of storage per generator.