public class ThreadIDRLG extends ThreadIDRNG implements RandomLongGenerator
| Constructor and Description |
|---|
ThreadIDRLG()
Constructs a per-context repeatable RLG.
|
ThreadIDRLG(int N)
Constructs a per-context repeatable RLG.
|
ThreadIDRLG(int N,
long seed)
Constructs a per-context repeatable RLG.
|
ThreadIDRLG(long seed)
Constructs a per-context repeatable RLG.
|
| Modifier and Type | Method and Description |
|---|---|
long |
nextLong()
Get the next random
long. |
setContextgetRNG, nextDouble, removeContext, seedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextDoublepublic ThreadIDRLG(int N,
long seed)
N - the maximum number of threadsseed - a seedpublic ThreadIDRLG(int N)
N - the maximum number of threadspublic ThreadIDRLG()
public ThreadIDRLG(long seed)
seed - a seedpublic long nextLong()
RandomLongGeneratorlong.nextLong in interface RandomLongGeneratorlongCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.