Uses of Interface
java.util.random.RandomGenerator.JumpableGenerator
Package
Description
This package contains classes and interfaces that support a generic API
for random number generation.
-
Uses of RandomGenerator.JumpableGenerator in java.util.random
Modifier and TypeInterfaceDescriptionstatic interface
This interface is designed to provide a common protocol for objects that generate sequences of pseudorandom values and can easily jump forward, by an arbitrary amount, to a distant point in the state cycle.static interface
This interface is designed to provide a common protocol for objects that generate sequences of pseudorandom values and can easily not only jump but also leap forward, by a large amount (ex. 2128), to a very distant point in the state cycle.Modifier and TypeMethodDescriptionRandomGenerator.JumpableGenerator.copy()
Returns a new generator whose internal state is an exact copy of this generator (therefore their future behavior should be identical if subjected to the same series of operations).RandomGenerator.LeapableGenerator.copyAndLeap()
Copy this generator, leap this generator forward, then return the copy.Modifier and TypeMethodDescriptiondefault Stream<RandomGenerator.JumpableGenerator>
RandomGenerator.LeapableGenerator.leaps()
Returns an effectively unlimited stream of new pseudorandom number generators, each of which implements theRandomGenerator.JumpableGenerator
interface.default Stream<RandomGenerator.JumpableGenerator>
RandomGenerator.LeapableGenerator.leaps
(long streamSize) Returns a stream producing the givenstreamSize
number of new pseudorandom number generators, each of which implements theRandomGenerator.JumpableGenerator
interface.