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

#476 in Algorithms

Download history 13815/week @ 2024-10-20 9546/week @ 2024-10-27 8052/week @ 2024-11-03 6363/week @ 2024-11-10 9431/week @ 2024-11-17 6387/week @ 2024-11-24 7679/week @ 2024-12-01 5025/week @ 2024-12-08 5163/week @ 2024-12-15 2704/week @ 2024-12-22 4256/week @ 2024-12-29 4211/week @ 2025-01-05 5011/week @ 2025-01-12 4493/week @ 2025-01-19 3242/week @ 2025-01-26 7497/week @ 2025-02-02

20,635 downloads per month
Used in 72 crates (17 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