Crates.io | simple-rnd |
lib.rs | simple-rnd |
version | 0.9.1 |
source | src |
created_at | 2022-08-27 14:29:32.071947 |
updated_at | 2022-09-10 08:00:15.475132 |
description | Tiny random number generation library |
homepage | https://github.com/engusmaze/simple-rnd |
repository | https://github.com/engusmaze/simple-rnd |
max_upload_size | |
id | 653447 |
size | 16,677 |
Tiny blazingly fast random number generation library.
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
}
}