SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.rng.MRG32k3aL Class Reference

The same generator as MRG32k3a, except here it is implemented with type long instead of double. More...

Inheritance diagram for umontreal.ssj.rng.MRG32k3aL:
umontreal.ssj.rng.RandomStreamBase umontreal.ssj.rng.CloneableRandomStream umontreal.ssj.rng.RandomStream

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 ()

Detailed Description

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.

Member Function Documentation

◆ clone()

MRG32k3aL umontreal.ssj.rng.MRG32k3aL.clone ( )
Returns
the detailed state of the generator, formatted as a string

Reimplemented from umontreal.ssj.rng.RandomStreamBase.

Definition at line 223 of file MRG32k3aL.java.

◆ nextValue()

double umontreal.ssj.rng.MRG32k3aL.nextValue ( )
protected
Returns
A deep copy of the current generator

Reimplemented from umontreal.ssj.rng.RandomStreamBase.

Definition at line 240 of file MRG32k3aL.java.

◆ resetNextSubstream()

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.

◆ resetStartStream()

void umontreal.ssj.rng.MRG32k3aL.resetStartStream ( )
Parameters
seedarray of 6 integers representing the new seed

Reimplemented from umontreal.ssj.rng.RandomStreamBase.

Definition at line 144 of file MRG32k3aL.java.

◆ resetStartSubstream()

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.

◆ setPackageSeed()

void umontreal.ssj.rng.MRG32k3aL.setPackageSeed ( long seed[])
static
Parameters
namename of the stream
        See the description of the same methods in class @ref MRG32k3a.

Definition at line 122 of file MRG32k3aL.java.

◆ setSeed()

void umontreal.ssj.rng.MRG32k3aL.setSeed ( long seed[])
Parameters
seedarray of 6 elements representing the seed

Definition at line 132 of file MRG32k3aL.java.

◆ toString()

String umontreal.ssj.rng.MRG32k3aL.toString ( )
Returns
the current state of the generator

Reimplemented from umontreal.ssj.rng.RandomStreamBase.

Definition at line 171 of file MRG32k3aL.java.

◆ toStringFull()

String umontreal.ssj.rng.MRG32k3aL.toStringFull ( )
Returns
the state of the generator, formated as a string

Definition at line 191 of file MRG32k3aL.java.


The documentation for this class was generated from the following file: