#read #sequence

random

The package provides sources of randomness

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

#320 in Algorithms

Download history 4769/week @ 2023-08-08 5281/week @ 2023-08-15 6756/week @ 2023-08-22 6083/week @ 2023-08-29 5823/week @ 2023-09-05 6029/week @ 2023-09-12 6436/week @ 2023-09-19 6872/week @ 2023-09-26 5996/week @ 2023-10-03 9762/week @ 2023-10-10 13564/week @ 2023-10-17 11625/week @ 2023-10-24 9416/week @ 2023-10-31 9155/week @ 2023-11-07 5484/week @ 2023-11-14 7336/week @ 2023-11-21

32,832 downloads per month
Used in 63 crates (14 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