21 releases (breaking)

0.14.0 Apr 23, 2023
0.13.2 Nov 6, 2022
0.12.2 Oct 31, 2016
0.12.1 Jul 17, 2016
0.9.2 Jul 7, 2015

#430 in Cryptography

Download history 4972/week @ 2024-12-16 2721/week @ 2024-12-23 4594/week @ 2024-12-30 3989/week @ 2025-01-06 4984/week @ 2025-01-13 4419/week @ 2025-01-20 3390/week @ 2025-01-27 7942/week @ 2025-02-03 8703/week @ 2025-02-10 6118/week @ 2025-02-17 7261/week @ 2025-02-24 5421/week @ 2025-03-03 6852/week @ 2025-03-10 5947/week @ 2025-03-17 8012/week @ 2025-03-24 6033/week @ 2025-03-31

27,073 downloads per month
Used in 76 crates (19 directly)

Apache-2.0/MIT

7KB
145 lines

Random Package Documentation Build

The packages provides sources of randomness.

Example

use random::Source;

let mut source = random::default(42);
println!("Scalar: {:?}", source.read::<f64>());
println!("Vector: {:?}", source.iter().take(2).collect::<Vec<f64>>());

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.

No runtime deps