A fast random number generator.
turborand
's internal implementation uses Wyrand, a simple and fast
generator but not cryptographically secure.
```rust use turborand::*;
let rand = rng!();
if rand.bool() { println!("Success! :D"); } else { println!("Failure... :("); } ```
Sample a value from a list:
```rust use turborand::*;
let rand = rng!();
let values = [1, 2, 3, 4, 5];
let value = rand.sample(&values); ```
Generate a vector with random values:
```rust use turborand::*; use std::iter::repeat_with;
let rand = rng!();
let values: Vec<_> = repeat_with(|| rand.f32()).take(10).collect(); ```
Licensed under either of
at your option.