simple-rnd

Crates.iosimple-rnd
lib.rssimple-rnd
version0.9.1
sourcesrc
created_at2022-08-27 14:29:32.071947
updated_at2022-09-10 08:00:15.475132
descriptionTiny random number generation library
homepagehttps://github.com/engusmaze/simple-rnd
repositoryhttps://github.com/engusmaze/simple-rnd
max_upload_size
id653447
size16,677
EngusMaze (engusmaze)

documentation

README

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
    }
}
Commit count: 4

cargo fmt