A port of Java java.util.Random
to Rust.
The implementation follows the public API of Java 17 Random. The method signatures have been changed to be more rusty,
for example, nextInt
-> next_i32
, nextDouble
-> next_f64
, nextGaussian
-> next_gaussian
, etc.
The library uses nightly toolchain to take advantage of LazySync.
Example usages can be found in the examples
directory.
If you find any discrepencies between this and the Java implementation, please file a Issue.
The code has been licensed under both MIT and Apache 2.0 to follow the Rust API guidelines.