9 releases

0.9.0-alpha.1 Mar 18, 2024
0.9.0-alpha.0 Feb 18, 2024
0.3.1 Jun 15, 2021
0.3.0 Dec 14, 2020
0.1.1 Oct 5, 2018

#1095 in Algorithms

Download history 276357/week @ 2024-01-13 305983/week @ 2024-01-20 297631/week @ 2024-01-27 298803/week @ 2024-02-03 317735/week @ 2024-02-10 315644/week @ 2024-02-17 372653/week @ 2024-02-24 311842/week @ 2024-03-02 333731/week @ 2024-03-09 317053/week @ 2024-03-16 330070/week @ 2024-03-23 341065/week @ 2024-03-30 307050/week @ 2024-04-06 308391/week @ 2024-04-13 323048/week @ 2024-04-20 263582/week @ 2024-04-27

1,253,838 downloads per month
Used in 4,983 crates (192 directly)

MIT/Apache

93KB
1K SLoC

rand_pcg

Test Status Latest version Book API API Minimum rustc version

Implements a selection of PCG random number generators.

PCG is a family of simple fast space-efficient statistically good algorithms for random number generation. [Melissa O'Neill, Harvey Mudd College, 2014].

The PCG algorithms are not suitable for cryptographic uses, but perform well in statistical tests, use little memory and are fairly fast. See the pcg-random website.

This crate depends on rand_core and is part of the Rand project.

Links:

Crate Features

rand_pcg is no_std compatible by default.

The serde1 feature includes implementations of Serialize and Deserialize for the included RNGs.

License

rand_pcg is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.

Dependencies

~1MB
~12K SLoC