#random #java #numbers #util #generator #gaussian

java-rand

Implementation of java.util.Random

2 unstable releases

Uses old Rust 2015

0.2.0 Mar 2, 2019
0.1.0 May 25, 2018

#8 in #gaussian

Download history 11/week @ 2023-11-20 7/week @ 2023-11-27 2/week @ 2023-12-11 9/week @ 2023-12-18 4/week @ 2023-12-25 10/week @ 2024-01-01 14/week @ 2024-01-08 7/week @ 2024-01-15 5/week @ 2024-01-29 5/week @ 2024-02-05 9/week @ 2024-02-12 24/week @ 2024-02-19 43/week @ 2024-02-26 23/week @ 2024-03-04

100 downloads per month
Used in 3 crates

MIT license

30KB
495 lines

java-rand

Pure Rust implementation of java.util.Random. Method names should be extremely similar to the Java implementation.

Note: gaussian random numbers are incorrect for now, as that would require StrictMath.


lib.rs:

Implementation of the Java Random Number generator.

No runtime deps