Crates.io | javarandom |
lib.rs | javarandom |
version | 0.2.1 |
source | src |
created_at | 2021-04-11 15:30:48.994921 |
updated_at | 2024-01-29 10:31:54.570663 |
description | Pure rust implementation of java.util.Random |
homepage | |
repository | https://github.com/Xydez/javarandom-rs |
max_upload_size | |
id | 382042 |
size | 7,992 |
javarandom-rs is a pure Rust implementation of java.util.Random
fn main() {
let mut rng = JavaRandom::with_seed(1234);
for i in 0..10 {
println!("{i}: {}", rng.next_int());
}
}