Registry / utility / java-random

java-random

JSON →
library0.1.7rscratesunverified

Implementation of Java's LCG random number generator in Rust.

# Cargo.toml [dependencies] java_random = "0.1.7"
INSTALL
IMPORT
SIG · JAVA-RANDOM
J
java-random
utilityrustv0.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JavaRandom
use java_random::JavaRandom;

Creates a Java-compatible random number generator with a seed.

use java_random::JavaRandom; fn main() { let mut rng = JavaRandom::new(42); println!("{}", rng.next_i32()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
java-random — cargo add java-random · libregistry