javarandom 0.2.1

Pure rust implementation of java.util.Random
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 7.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.6 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Xydez/javarandom-rs
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Xydez

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());
    }
}