GridSim 5.0 beta

gridsim.util
Class Variate

Object
  extended by Variate
Direct Known Subclasses:
HyperExponential, Weibull

public class Variate
extends Object

Random number generation via an installable random number generator.
NOTE: This class is taken from JSim.

Since:
GridSim Toolkit 4.1

Constructor Summary
Variate(int i)
          Constructs a random variate.
 
Method Summary
 double gen()
          Generate a random number in the interval 0 to 1.
 Double[] getParameters()
          Get the parameters of the constuctor
 void incStream()
          Increment the stream.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Variate

public Variate(int i)
Constructs a random variate.

Parameters:
i - stream number
Method Detail

incStream

public void incStream()
Increment the stream.


getParameters

public Double[] getParameters()
Get the parameters of the constuctor


gen

public double gen()
Generate a random number in the interval 0 to 1.

Returns:
double random number

GridSim 5.0 beta

The University of Melbourne, Australia, 2009