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

CloneableRandomStream extends RandomStream and Cloneable. More...

Inheritance diagram for umontreal.ssj.rng.CloneableRandomStream:
umontreal.ssj.rng.RandomStream umontreal.ssj.rng.RandomStreamBase umontreal.ssj.mcqmctools.anova.SplitStream umontreal.ssj.rng.LFSR113 umontreal.ssj.rng.LFSR258 umontreal.ssj.rng.MRG31k3p umontreal.ssj.rng.MRG32k3a umontreal.ssj.rng.MRG32k3aL umontreal.ssj.rng.WELL512

Public Member Functions

CloneableRandomStream clone ()
 Clones the current object and returns its copy.
Public Member Functions inherited from umontreal.ssj.rng.RandomStream
void resetStartStream ()
 Reinitializes the stream to its initial state \(I_g\): \(C_g\) and \(B_g\) are set to \(I_g\).
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 ()
 Returns a string containing the current state of this stream.
double nextDouble ()
 Returns a (pseudo)random number from the uniform distribution over the interval \((0,1)\), using this stream, after advancing its state by one step.
void nextArrayOfDouble (double[] u, int start, int n)
 Generates n (pseudo)random numbers from the uniform distribution and stores them into the array u starting at index start.
int nextInt (int i, int j)
 Returns a (pseudo)random number from the discrete uniform distribution over the integers \(\{i,i+1,…,j\}\), using this stream.
void nextArrayOfInt (int i, int j, int[] u, int start, int n)
 Generates n (pseudo)random numbers from the discrete uniform distribution over the integers \(\{i,i+1,…,j\}\), using this stream and stores the result in the array u starting at index start.

Detailed Description

CloneableRandomStream extends RandomStream and Cloneable.

All classes that implements this interface are able to produce cloned objects.

The cloned object is entirely independent of the older odject. Moreover the cloned object has all the same properties as the older one. All his seeds are duplicated, and therefore both generators will produce the same random number sequence.

Definition at line 39 of file CloneableRandomStream.java.

Member Function Documentation

◆ clone()

CloneableRandomStream umontreal.ssj.rng.CloneableRandomStream.clone ( )

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