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

#490 in Algorithms

Download history 12595/week @ 2024-08-24 8317/week @ 2024-08-31 15555/week @ 2024-09-07 11176/week @ 2024-09-14 11575/week @ 2024-09-21 9727/week @ 2024-09-28 11548/week @ 2024-10-05 8348/week @ 2024-10-12 13446/week @ 2024-10-19 9632/week @ 2024-10-26 8198/week @ 2024-11-02 5999/week @ 2024-11-09 9485/week @ 2024-11-16 6799/week @ 2024-11-23 6816/week @ 2024-11-30 5089/week @ 2024-12-07

30,085 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