random

Crates.iorandom
lib.rsrandom
version0.14.0
sourcesrc
created_at2015-06-23 11:38:43.032989
updated_at2023-04-23 13:35:13.423791
descriptionThe package provides sources of randomness.
homepagehttps://github.com/stainless-steel/random
repositoryhttps://github.com/stainless-steel/random
max_upload_size
id2455
size9,446
Owners (github:buoyantio:owners)

documentation

https://docs.rs/random

README

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.

Commit count: 82

cargo fmt