Registry / utility / rand-pcg

rand-pcg

JSON →
library0.10.2rscratesunverified

Selected PCG random number generators

# Cargo.toml [dependencies] rand_pcg = "0.10.2"
INSTALL
IMPORT
SIG · RAND-PCG
R
rand-pcg
utilityrustv0.10.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pcg64Mcg
✓ use rand_pcg::Pcg64Mcg;

Create a PCG64 MCG random number generator

use rand_pcg::Pcg64Mcg; use rand::SeedableRng; fn main() { let mut rng = Pcg64Mcg::seed_from_u64(42); let val: u32 = rng.gen(); println!("Random value: {}", val); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.10.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rand-pcg — cargo add rand-pcg · libregistry