22 releases (14 breaking)

0.14.1 Oct 10, 2025
0.14.0 Apr 23, 2023
0.13.2 Nov 6, 2022
0.12.2 Oct 31, 2016
0.9.2 Jul 7, 2015

#137 in Algorithms

Download history 6890/week @ 2025-08-17 7280/week @ 2025-08-24 5011/week @ 2025-08-31 5961/week @ 2025-09-07 4972/week @ 2025-09-14 5619/week @ 2025-09-21 5547/week @ 2025-09-28 5099/week @ 2025-10-05 5706/week @ 2025-10-12 5715/week @ 2025-10-19 5946/week @ 2025-10-26 5583/week @ 2025-11-02 5424/week @ 2025-11-09 4999/week @ 2025-11-16 4734/week @ 2025-11-23 5401/week @ 2025-11-30

21,098 downloads per month
Used in 82 crates (23 directly)

Apache-2.0 OR MIT

8KB
157 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