pcg_with_xorshift

Crates.iopcg_with_xorshift
lib.rspcg_with_xorshift
version1.0.0
sourcesrc
created_at2023-08-17 01:47:07.373538
updated_at2023-08-17 01:47:07.373538
descriptiona tiny random number generator
homepage
repositoryhttps://github.com/ink-carp/pcg_with_xorshift
max_upload_size
id946528
size5,860
墨锦 (ink-carp)

documentation

README

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

Commit count: 4

cargo fmt