random

Crates.iorandom
lib.rsrandom
version0.14.1
created_at2015-06-23 11:38:43.032989+00
updated_at2025-10-10 12:09:58.247747+00
descriptionThe package provides sources of randomness.
homepagehttps://github.com/stainless-steel/random
repositoryhttps://github.com/stainless-steel/random
max_upload_size
id2455
size10,041
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