Crates.io | pcg32 |
lib.rs | pcg32 |
version | 0.1.1 |
source | src |
created_at | 2023-03-12 06:49:56.657887 |
updated_at | 2024-08-17 11:08:17.01558 |
description | No-frills PCG32 random number generator implementation |
homepage | |
repository | https://github.com/LiosK/rust-pcg32 |
max_upload_size | |
id | 807845 |
size | 25,719 |
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.