javarandom

Crates.iojavarandom
lib.rsjavarandom
version0.2.1
sourcesrc
created_at2021-04-11 15:30:48.994921
updated_at2024-01-29 10:31:54.570663
descriptionPure rust implementation of java.util.Random
homepage
repositoryhttps://github.com/Xydez/javarandom-rs
max_upload_size
id382042
size7,992
Johannes (Xydez)

documentation

README

javarandom-rs

javarandom-rs is a pure Rust implementation of java.util.Random

Example

fn main() {
    let mut rng = JavaRandom::with_seed(1234);

    for i in 0..10 {
        println!("{i}: {}", rng.next_int());
    }
}
Commit count: 7

cargo fmt