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 . |
setContext
getRNG, nextDouble, removeContext, seed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextDouble
public 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()
RandomLongGenerator
long
.nextLong
in interface RandomLongGenerator
long
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.