#numbers #generation #tiny #rnd

simple-rnd

Tiny random number generation library

2 releases

0.9.1 Sep 10, 2022
0.9.0 Aug 27, 2022

#2232 in Algorithms

Apache-2.0 OR MIT

7KB

Simple rnd

Tiny blazingly fast random number generation library.

examples/simple.rs
use simple_rnd::Rand;

fn main() {
    let mut rand = Rand::new(0); // The parameter is the starting value (seed)
    for _ in 0..16 {
        println!("{}", rand.next()); // rand.next() generates next u64 number
    }
}

No runtime deps