#randomness #source

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

#927 in Algorithms

Download history 6805/week @ 2024-11-30 5823/week @ 2024-12-07 4910/week @ 2024-12-14 3024/week @ 2024-12-21 3729/week @ 2024-12-28 4578/week @ 2025-01-04 4854/week @ 2025-01-11 4471/week @ 2025-01-18 3442/week @ 2025-01-25 7744/week @ 2025-02-01 8145/week @ 2025-02-08 6708/week @ 2025-02-15 7358/week @ 2025-02-22 5418/week @ 2025-03-01 6765/week @ 2025-03-08 4731/week @ 2025-03-15

25,643 downloads per month
Used in 75 crates (18 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