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

#485 in Algorithms

Download history 9151/week @ 2024-11-15 8752/week @ 2024-11-22 5855/week @ 2024-11-29 6278/week @ 2024-12-06 5196/week @ 2024-12-13 2890/week @ 2024-12-20 3398/week @ 2024-12-27 5117/week @ 2025-01-03 3684/week @ 2025-01-10 5564/week @ 2025-01-17 3073/week @ 2025-01-24 7264/week @ 2025-01-31 6908/week @ 2025-02-07 7912/week @ 2025-02-14 7557/week @ 2025-02-21 4188/week @ 2025-02-28

28,402 downloads per month
Used in 75 crates (18 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