Random.nextLong(long bound)?

Martin Buchholz martinrb at google.com
Wed Oct 18 22:15:43 UTC 2017


Why not SplittableRandom?
https://docs.oracle.com/javase/9/docs/api/java/util/SplittableRandom.html#nextLong-long-

On Wed, Oct 18, 2017 at 2:54 PM, Steven Schlansker <
stevenschlansker at gmail.com> wrote:

> My coworker is implementing an algorithm for which he needs a bounded
> random long.
> He needs to be in full control of the seed and not share the instance
> (i.e. not use ThreadLocalRandom).
>


More information about the core-libs-dev mailing list