UniformRandomProvider
LongJumpableUniformRandomProvider
public interface JumpableUniformRandomProvider extends UniformRandomProvider
Modifier and Type | Method | Description |
---|---|---|
UniformRandomProvider |
jump() |
Creates a copy of the UniformRandomProvider and then advances the
state of the current instance.
|
nextBoolean, nextBytes, nextBytes, nextDouble, nextFloat, nextInt, nextInt, nextLong, nextLong
UniformRandomProvider jump()
The current state will be advanced in a single operation by the equivalent of a number of sequential calls to a method that updates the state of the provider. The size of the jump is implementation dependent.
Repeat invocations of this method will create a series of generators that are uniformly spaced at intervals of the output sequence. Each generator provides non-overlapping output for the length of the jump for use in parallel computations.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.