public class DotyHumphreySmallFastCounting32 extends IntProvider
The state size is 128-bits; the period is a minimum of 232 and an average of approximately 2127.
| Constructor and Description |
|---|
DotyHumphreySmallFastCounting32(int[] 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 DotyHumphreySmallFastCounting32(int[] seed)
seed - Initial seed.
If the length is larger than 3, only the first 3 elements will
be used; if smaller, the remaining elements will be automatically set.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.