The same generator as MRG32k3a, except here it is implemented with type long instead of double. More...
Public Member Functions | |
| void | setSeed (long seed[]) |
| void | resetStartStream () |
| void | resetStartSubstream () |
| Reinitializes the stream to the beginning of its current substream: | |
| void | resetNextSubstream () |
| Reinitializes the stream to the beginning of its next substream: | |
| String | toString () |
| String | toStringFull () |
| MRG32k3aL | clone () |
| Public Member Functions inherited from umontreal.ssj.rng.RandomStreamBase | |
| void | increasedPrecision (boolean incp) |
| After calling this method with incp = true, each call to the RNG (direct or indirect) for this stream will return a uniform random number with more bits of precision than what is returned by nextValue, and will advance the state of the stream by 2 steps instead of 1 (i.e., nextValue will be called twice for each random number). | |
| double | nextDouble () |
| Returns a uniform random number between 0 and 1 from the stream. | |
| void | nextArrayOfDouble (double[] u, int start, int n) |
| Calls nextDouble n times to fill the array u. | |
| int | nextInt (int i, int j) |
| Calls nextDouble once to create one integer between i and j. | |
| void | nextArrayOfInt (int i, int j, int[] u, int start, int n) |
| Calls nextInt n times to fill the array u. | |
| String | formatState () |
| Use the toString method. | |
| String | formatStateFull () |
| Use the toStringFull method. | |
Static Public Member Functions | |
| static void | setPackageSeed (long seed[]) |
Protected Member Functions | |
| double | nextValue () |
The same generator as MRG32k3a, except here it is implemented with type long instead of double.
(See MRG32k3a for more information.)
Definition at line 37 of file MRG32k3aL.java.
| MRG32k3aL umontreal.ssj.rng.MRG32k3aL.clone | ( | ) |
Reimplemented from umontreal.ssj.rng.RandomStreamBase.
Definition at line 223 of file MRG32k3aL.java.
|
protected |
Reimplemented from umontreal.ssj.rng.RandomStreamBase.
Definition at line 240 of file MRG32k3aL.java.
| void umontreal.ssj.rng.MRG32k3aL.resetNextSubstream | ( | ) |
Reinitializes the stream to the beginning of its next substream:
\(N_g\) is computed, and \(C_g\) and \(B_g\) are set to \(N_g\).
Reimplemented from umontreal.ssj.rng.RandomStreamBase.
Definition at line 159 of file MRG32k3aL.java.
| void umontreal.ssj.rng.MRG32k3aL.resetStartStream | ( | ) |
| seed | array of 6 integers representing the new seed |
Reimplemented from umontreal.ssj.rng.RandomStreamBase.
Definition at line 144 of file MRG32k3aL.java.
| void umontreal.ssj.rng.MRG32k3aL.resetStartSubstream | ( | ) |
Reinitializes the stream to the beginning of its current substream:
\(C_g\) is set to \(B_g\).
Reimplemented from umontreal.ssj.rng.RandomStreamBase.
Definition at line 150 of file MRG32k3aL.java.
|
static |
| name | name of the stream See the description of the same methods in class @ref MRG32k3a. |
Definition at line 122 of file MRG32k3aL.java.
| void umontreal.ssj.rng.MRG32k3aL.setSeed | ( | long | seed[] | ) |
| seed | array of 6 elements representing the seed |
Definition at line 132 of file MRG32k3aL.java.
| String umontreal.ssj.rng.MRG32k3aL.toString | ( | ) |
Reimplemented from umontreal.ssj.rng.RandomStreamBase.
Definition at line 171 of file MRG32k3aL.java.
| String umontreal.ssj.rng.MRG32k3aL.toStringFull | ( | ) |
Definition at line 191 of file MRG32k3aL.java.