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 |
#349 in Algorithms
47,377 downloads per month
Used in 72 crates
(17 directly)
7KB
145 lines
Random
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.