public class MRG32k3aL extends RandomStreamBase
MRG32k3a, except here it is implemented
with type long instead of double.
(See MRG32k3a for more information.)| Constructor and Description |
|---|
MRG32k3aL() |
MRG32k3aL(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
MRG32k3aL |
clone()
Clones the current generator and return its copy.
|
long[] |
getState() |
void |
resetNextSubstream()
Reinitializes the stream to the beginning of its next
substream: Ng is computed, and
Cg and Bg are set to Ng.
|
void |
resetStartStream()
Reinitializes the stream to its initial state Ig:
Cg and Bg are set to Ig.
|
void |
resetStartSubstream()
Reinitializes the stream to the beginning of its current
substream: Cg is set to Bg.
|
static void |
setPackageSeed(long[] seed) |
void |
setSeed(long[] seed) |
java.lang.String |
toString()
Returns a string containing the current state of this stream.
|
java.lang.String |
toStringFull() |
formatState, formatStateFull, increasedPrecision, nextArrayOfDouble, nextArrayOfInt, nextDouble, nextIntpublic MRG32k3aL()
public MRG32k3aL(java.lang.String name)
name - name of the streampublic static void setPackageSeed(long[] seed)
seed - array of 6 elements representing the seedpublic void setSeed(long[] seed)
seed - array of 6 integers representing the new seedpublic void resetStartStream()
RandomStreamresetStartStream in interface RandomStreamresetStartStream in class RandomStreamBasepublic void resetStartSubstream()
RandomStreamresetStartSubstream in interface RandomStreamresetStartSubstream in class RandomStreamBasepublic void resetNextSubstream()
RandomStreamresetNextSubstream in interface RandomStreamresetNextSubstream in class RandomStreamBasepublic long[] getState()
public java.lang.String toString()
RandomStreamtoString in interface RandomStreamtoString in class RandomStreamBasepublic java.lang.String toStringFull()
public MRG32k3aL clone()
RandomStreamBaseclone in interface CloneableRandomStreamclone in class RandomStreamBaseTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.