psimjava
Class Erand

java.lang.Object
  extended by psimjava.Erand

public class Erand
extends java.lang.Object

Exponential Randum Number Generator

Object-oriented simulation package, process interaction approach.

(C) J. M. Garrido. June 2000, 2003, 2004, 2007 Random number generator, Exponential distribution


Constructor Summary
Erand(double emean)
          Constructor for initializing the exponential random number generator.
Erand(double emean, long eseed)
          Constructor for initializing the exponential random number generator.
 
Method Summary
 double fdraw()
          This function generates a random number using the exponential distribution with the mean value given in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Erand

public Erand(double emean,
             long eseed)
Constructor for initializing the exponential random number generator.

Parameters:
emean - double, the mean value of the distribution
eseed - long, the seed value for selecting a random stream.

Erand

public Erand(double emean)
Constructor for initializing the exponential random number generator.

Parameters:
emean - double, the mean value of the distribution
Method Detail

fdraw

public double fdraw()
This function generates a random number using the exponential distribution with the mean value given in the constructor.

Returns:
double, a random number.