public class XorShift1024StarPhi extends XorShift1024Star
XorShift1024* algorithm.
Note: This supersedes XorShift1024Star. The sequences emitted by both
generators are correlated.
This generator differs only in the final multiplier (a fixed-point representation of the golden ratio), which eliminates linear dependencies from one of the lowest bits.
| Modifier | Constructor and Description |
|---|---|
|
XorShift1024StarPhi(long[] seed)
Creates a new instance.
|
protected |
XorShift1024StarPhi(XorShift1024StarPhi source)
Creates a copy instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected XorShift1024StarPhi |
copy()
Create a copy.
|
getStateInternal, jump, next, setStateInternalnextBoolean, nextInt, nextLong, resetCachedStatecheckIndex, checkStateSize, composeStateInternal, extendSeed, extendSeed, fillState, fillState, restoreState, saveState, splitStateInternal, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitjumps, jumpsdoubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextBytes, nextDouble, nextDouble, nextDouble, nextFloat, nextFloat, nextFloat, nextInt, nextInt, nextInt, nextLong, nextLong, nextLongpublic XorShift1024StarPhi(long[] seed)
seed - Initial seed.
If the length is larger than 16, only the first 16 elements will
be used; if smaller, the remaining elements will be automatically
set. A seed containing all zeros will create a non-functional generator.protected XorShift1024StarPhi(XorShift1024StarPhi source)
source - Source to copy.protected XorShift1024StarPhi copy()
copy in class XorShift1024StarCopyright © 2016–2022 The Apache Software Foundation. All rights reserved.