public class Stc64 extends AbstractRng64 implements SplittablePseudoRandom
Stc64 is Tyge Løvset's improved variation of
Sfc64. See
"https://github.com/tylov/STC/blob/master/include/stc/crandom.h".
This generator has a guaranteed period of at least 264 and an average period of 2255.
DOUBLE_NORM, FLOAT_NORM, nextGaussian, unused| Modifier | Constructor and Description |
|---|---|
|
Stc64() |
|
Stc64(long seed) |
|
Stc64(long[] seed) |
|
Stc64(long seed,
long seq) |
protected |
Stc64(long s0,
long s1,
long s2,
long s3,
long seq) |
| Modifier and Type | Method and Description |
|---|---|
static SplittablePseudoRandom |
getDefault() |
long |
nextLong() |
Stc64 |
split()
Constructs and returns a new SplittablePseudoRandom instance that shares
no mutable state with the current instance.
|
beta, beta, cauchy, cauchy, chiSquare, chiSquare, doubles, doubles, doubles, doubles, exponential, exponential, gamma, gamma, getAlgorithm, getSeed, ints, ints, ints, ints, logNormal, logNormal, longs, longs, longs, longs, next, nextBoolean, nextBytes, nextDouble, nextDouble, nextDoubles, nextFloat, nextFloat, nextGaussian, nextGaussian, nextInt, nextInt, nextInt, nextLong, nextLong, nextLongs, normal, normal, saveSeed, saveSeed, studentT, studentT, weibull, weibullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithm, getSeed, next, nextBoolean, nextBytes, nextDouble, nextDouble, nextDoubles, nextFloat, nextFloat, nextGaussian, nextGaussian, nextInt, nextInt, nextInt, nextLong, nextLong, nextLongsbeta, beta, cauchy, cauchy, chiSquare, chiSquare, doubles, doubles, doubles, doubles, exponential, exponential, gamma, gamma, ints, ints, ints, ints, logNormal, logNormal, longs, longs, longs, longs, normal, normal, studentT, studentT, weibull, weibullpublic Stc64()
public Stc64(long seed)
public Stc64(long[] seed)
public Stc64(long seed,
long seq)
protected Stc64(long s0,
long s1,
long s2,
long s3,
long seq)
public final long nextLong()
nextLong in interface PseudoRandomnextLong in class AbstractRng64public Stc64 split()
SplittablePseudoRandomSplittablePseudoRandom instance. Instances of SplittablePseudoRandom are
not thread-safe. They are designed to be split, not shared,
across threads.split in interface SplittablePseudoRandompublic static SplittablePseudoRandom getDefault()
Copyright © 2022. All rights reserved.