jsim.variate
Class Randi

java.lang.Object
  extended by jsim.variate.Variate
      extended by jsim.variate.Randi

public class Randi
extends Variate

Random Integer (Discrete Uniform) random variate generation.


Constructor Summary
Randi(int min, int max, int i)
          Constructs a Random Integer (Discrete Uniform) random variate.
 
Method Summary
 double gen()
          Generate a random number from Randi distribution.
 java.lang.Double[] getParameters()
          Get the parameters of the constuctor
 
Methods inherited from class jsim.variate.Variate
incStream, printName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Randi

public Randi(int min,
             int max,
             int i)
Constructs a Random Integer (Discrete Uniform) random variate.

Parameters:
min - minimum value
max - maximum value
i - random number stream
Method Detail

getParameters

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

Overrides:
getParameters in class Variate

gen

public double gen()
Generate a random number from Randi distribution.

Overrides:
gen in class Variate
Returns:
double random number from Randi distribution