#numbers #generator #tiny #32-bits

pcg_with_xorshift

a tiny random number generator

1 stable release

1.0.0 Aug 17, 2023

#195 in #tiny

Apache-2.0

6KB
87 lines

pcg_with_xorshift

32-bits pcg_with_xorshift random number generator

simple random number generator,without std lib

usage:

use pcg_with_xorshift::{PcgWithXorshift, RandomNumberGeneratorEngine};
fn main() {
let mut pcg = PcgWithXorshift::new(None);
let number = pcg.get();
}

reference:

https://www.pcg-random.org/
https://github.com/flo-at/rustsnake.git

No runtime deps