pcg32

Crates.iopcg32
lib.rspcg32
version0.1.1
sourcesrc
created_at2023-03-12 06:49:56.657887
updated_at2024-08-17 11:08:17.01558
descriptionNo-frills PCG32 random number generator implementation
homepage
repositoryhttps://github.com/LiosK/rust-pcg32
max_upload_size
id807845
size25,719
LiosK (LiosK)

documentation

README

No-frills PCG32 random number generator implementation

Crates.io License

It implements the PCG32 random number generator (and really only that).

let mut g = pcg32::Pcg32::new(0xff30_6525_39eb_eaa9, 0x315b_fae4_8ade_2146);

assert_eq!(g.generate(), 0xf986_95e1);
assert_eq!(g.generate(), 0x7e39_20e2);

This crate is no_std compatible.

Commit count: 2

cargo fmt