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

#439 in Algorithms

Download history 7246/week @ 2023-12-14 3137/week @ 2023-12-21 3050/week @ 2023-12-28 9949/week @ 2024-01-04 7982/week @ 2024-01-11 9097/week @ 2024-01-18 5831/week @ 2024-01-25 8355/week @ 2024-02-01 7636/week @ 2024-02-08 6230/week @ 2024-02-15 8652/week @ 2024-02-22 13399/week @ 2024-02-29 12796/week @ 2024-03-07 13564/week @ 2024-03-14 10101/week @ 2024-03-21 9740/week @ 2024-03-28

49,850 downloads per month
Used in 72 crates (15 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