RandomLongSource
, RestorableUniformRandomProvider
, UniformRandomProvider
public class SplitMix64 extends LongProvider
Constructor | Description |
---|---|
SplitMix64(java.lang.Long seed) |
Creates a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
protected byte[] |
getStateInternal() |
Creates a snapshot of the RNG state.
|
long |
next() |
|
protected void |
setStateInternal(byte[] s) |
Resets the RNG to the given
state . |
checkIndex, checkStateSize, fillState, fillState, nextInt, nextLong, restoreState, saveState, toString
nextBoolean, nextBytes, nextBytes, nextDouble, nextFloat, nextInt, nextLong
public SplitMix64(java.lang.Long seed)
seed
- Initial seed.public long next()
protected byte[] getStateInternal()
getStateInternal
in class BaseProvider
protected void setStateInternal(byte[] s)
state
.setStateInternal
in class BaseProvider
s
- State (previously obtained by a call to
BaseProvider.getStateInternal()
).BaseProvider.checkStateSize(byte[],int)
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.