Crate javarandom[][src]

Pure rust implementation of the java.util.Random class.

Examples

use javarandom::JavaRandom;
 
// Create a JavaRandom instance with a random seed
let mut random = JavaRandom::new();
 
println!("Random number between 0.0 and 1.0: {}", random.next_float());

Structs

JavaRandom

Rust implementation of the java.util.Random class.