22 releases (10 stable)

new 5.1.0 Jan 26, 2025
5.0.0 Sep 1, 2023
4.0.0-alpha.3 Aug 26, 2020
3.0.1 Oct 4, 2019
0.890.0 May 14, 2018

#357 in Algorithms

Download history 92/week @ 2024-10-08 95/week @ 2024-10-15 106/week @ 2024-10-22 121/week @ 2024-10-29 78/week @ 2024-11-05 70/week @ 2024-11-12 97/week @ 2024-11-19 122/week @ 2024-11-26 122/week @ 2024-12-03 210/week @ 2024-12-10 116/week @ 2024-12-17 75/week @ 2024-12-24 71/week @ 2024-12-31 123/week @ 2025-01-07 152/week @ 2025-01-14 205/week @ 2025-01-21

551 downloads per month
Used in 11 crates (9 directly)

Zlib OR Apache-2.0 OR MIT

26KB
473 lines

randomize

Pseudo-random number generator crate.

NOT FOR CRYPTOGRAPHIC PURPOSES.


lib.rs:

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 getrandom cargo feature then both types will have constructor functions to handle seeding a generator from the getrandom function.
  • Call next_u32 on the generator to get pseudo-random u32 values.
  • At your option, import the [Gen32] trait for various extension methods.

Dependencies

~130–275KB