You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In JEP 356, Java 17 will probably introduce some interesting enhancements to the Pseudo-Random Number Generation capabilities in the standard library. I'm thinking of the new RandomGenerator interface and how it can make PRNG algorithms interchangeable:
We provide a new interface, RandomGenerator, which supplies a uniform API for all existing and new PRNGs.
RandomGenerators provide methods named ints, longs, doubles, nextBoolean, nextInt, nextLong, nextDouble,
and nextFloat, with all their current parameter variations.
[..]
We also provide implementations of these widely-used PRNG algorithms:
* Xoshiro256PlusPlus
* Xoroshiro128PlusPlus
Another improvement from which Easy Random could benefit directly is the following:
The structure of the central nextLong (or nextInt) method of an LXM algorithm follows a suggestion
in December 2017 by Sebastiano Vigna that using one LCG subgenerator and one xor-based subgenerator
(rather than two LCG subgenerators) would provide a longer period, superior equidistribution, scalability,
and better quality.
This issue is to explore if Easy Random can benefit from these enhancements.
The text was updated successfully, but these errors were encountered:
In JEP 356, Java 17 will probably introduce some interesting enhancements to the Pseudo-Random Number Generation capabilities in the standard library. I'm thinking of the new
RandomGenerator
interface and how it can make PRNG algorithms interchangeable:Another improvement from which Easy Random could benefit directly is the following:
This issue is to explore if Easy Random can benefit from these enhancements.
The text was updated successfully, but these errors were encountered: