public class JenkinsSmallFast32 extends IntProvider
The state size is 128-bits; the shortest period is expected to be about 294 and it expected that about one seed will run into another seed within 264 values.
| Constructor and Description |
|---|
JenkinsSmallFast32(Integer seed)
Creates an instance with the given seed.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getStateInternal()
Creates a snapshot of the RNG state.
|
int |
next() |
protected void |
setStateInternal(byte[] s)
Resets the RNG to the given
state. |
nextBoolean, nextBytes, nextBytes, nextDouble, nextInt, nextLong, resetCachedStatecheckIndex, checkStateSize, composeStateInternal, extendSeed, extendSeed, fillState, fillState, restoreState, saveState, splitStateInternal, toStringpublic JenkinsSmallFast32(Integer seed)
seed - Initial seed.public final int next()
protected byte[] getStateInternal()
getStateInternal in class IntProviderprotected void setStateInternal(byte[] s)
state.setStateInternal in class IntProviders - State (previously obtained by a call to
BaseProvider.getStateInternal()).BaseProvider.checkStateSize(byte[],int)Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.