Expand description
Pseudo-random number generator crate.
NOT FOR CRYPTOGRAPHIC PURPOSES.
§Using This Crate
- Create a PCG32 or PCG32K value as your generator.
- If you enable this crate’s getrandomcargo feature then both types will have constructor functions to handle seeding a generator from the getrandom function.
 
- If you enable this crate’s 
- Call next_u32on the generator to get pseudo-randomu32values.
- At your option, import the Gen32 trait for various extension methods.
Modules§
- formulas
- Base formulas used elsewhere in the crate.
Structs§
- BoundedRand U16 
- Allows sampling a u16number in0 .. N.
- BoundedRand U32 
- Allows sampling a u32number in0 .. N.
- PCG32
- A Permuted Congruential Generator with 32-bit output.
- PCG32K
- A Permuted Congruential Generator with 32-bit output, extended to Kdimensions.
Traits§
- Gen32
- A trait for pseudo-random number generators with 32-bit output per step.