org.simgrid.msg
public class RngStream extends java.lang.Object
| Constructor and Description | 
|---|
| RngStream()Creates and returns a new stream without identifier. | 
| RngStream(java.lang.String name)Creates and returns a new stream with identifier "name". | 
| Modifier and Type | Method and Description | 
|---|---|
| void | advanceState(int e,
            int g)Advances the state of the stream by k values, without modifying the states of other streams (as
 in RngStream_SetSeed), nor the values of Bg and Ig associated with this stream. | 
| protected void | finalize()Destructor | 
| static void | nativeInit()Class initializer, to initialize various JNI stuff | 
| int | randInt(int i,
       int j)Returns a (pseudo)random number from the discrete uniform distribution over the integers
 {i, i + 1, . . . , j} | 
| double | randU01()Returns a (pseudo)random number from the uniform distribution over the interval (0, 1), after advancing the state by one step. | 
| void | resetNextSubstream()Reinitializes the stream g to the beginning of its next substream: Ng is computed, and Cg and
 Bg are set to Ng . | 
| void | resetStart()Reinitializes the stream g to its initial state: Cg and Bg are set to Ig . | 
| void | restartStartSubstream()Reinitializes the stream g to the beginning of its current substream: Cg is set to Bg . | 
| void | setAntithetic(boolean a)If a = true the stream g will start generating antithetic variates, i.e., 1 - U instead of U , until
  this method is called again with a = false. | 
| static boolean | setPackageSeed(int[] seed)Sets the initial seed of the package RngStreams to the six integers in the vector seed. | 
| boolean | setSeed(int[] seed)Sets the initial seed Ig of stream g to the vector seed. | 
public RngStream()
public RngStream(java.lang.String name)
protected void finalize()
finalize in class java.lang.Objectpublic static boolean setPackageSeed(int[] seed)
public void resetStart()
public void restartStartSubstream()
public void resetNextSubstream()
public void setAntithetic(boolean a)
public boolean setSeed(int[] seed)
public void advanceState(int e,
                int g)
public double randU01()
public int randInt(int i,
          int j)
public static void nativeInit()