YA-Rand: Yet Another Rand
Provides simple and fast pseudo/crypto random number generation.
Usage
These are just a few simple examples to get you started.
use *;
// **Correct** instantiation is very easy.
// This seeds the RNG using operating system entropy,
// so you never have to worry about the quality of the
// initial state of RNG instances.
let mut rng = new_rng;
// Generate a random number with a given upper bound.
let max: u64 = 420;
let val = rng.bound;
assert!;
// Generate a random number in a given range.
let min: i64 = -69;
let max: i64 = 69;
let val = rng.range;
assert!;
// Generate a random floating point value.
let val = rng.f64;
assert!;
// Generate a random ascii digit: '0'..='9' as a char.
let digit = rng.ascii_digit;
assert!;
See https://docs.rs/ya-rand/latest/ya_rand/ for full documentation.