edu.umass.cs.mallet.base.util
Class Random

java.lang.Object
  extended byedu.umass.cs.mallet.base.util.Random
All Implemented Interfaces:
java.io.Serializable

public class Random
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Random()
           
Random(long seed)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  int next(int bits)
           
 double nextBeta(double alpha, double beta)
           
 boolean nextBoolean()
           
 boolean nextBoolean(double p)
           
 double nextChiSq()
           
 double nextChiSq(int df)
           
 double nextChiSq(int df, double lambda)
           
 int nextDiscrete(double[] a)
           
 int nextDiscrete(double[] a, double sum)
           
 double nextExp()
           
 double nextExp(double beta)
           
 double nextExp(double beta, double lambda)
           
 double nextGamma()
           
 double nextGamma(double alpha)
           
 double nextGamma(double alpha, double beta)
           
 double nextGamma(double alpha, double beta, double lambda)
           
 double nextGaussian()
           
 double nextGaussian(double m, double s2)
           
 int nextInt()
           
 int nextInt(int n)
           
 int nextPoisson()
           
 int nextPoisson(double lambda)
           
 double nextUniform()
           
 double nextUniform(double a, double b)
           
 double oldNextGamma(int ia)
           
protected  void setSeed(long seed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Random

public Random()

Random

public Random(long seed)
Method Detail

setSeed

protected void setSeed(long seed)

next

protected int next(int bits)

nextInt

public int nextInt()

nextInt

public int nextInt(int n)

nextPoisson

public int nextPoisson(double lambda)

nextPoisson

public int nextPoisson()

nextBoolean

public boolean nextBoolean()

nextBoolean

public boolean nextBoolean(double p)

nextUniform

public double nextUniform()

nextUniform

public double nextUniform(double a,
                          double b)

nextDiscrete

public int nextDiscrete(double[] a)

nextDiscrete

public int nextDiscrete(double[] a,
                        double sum)

nextGaussian

public double nextGaussian()

nextGaussian

public double nextGaussian(double m,
                           double s2)

nextGamma

public double nextGamma()

nextGamma

public double nextGamma(double alpha)

oldNextGamma

public double oldNextGamma(int ia)

nextGamma

public double nextGamma(double alpha,
                        double beta)

nextGamma

public double nextGamma(double alpha,
                        double beta,
                        double lambda)

nextExp

public double nextExp()

nextExp

public double nextExp(double beta)

nextExp

public double nextExp(double beta,
                      double lambda)

nextChiSq

public double nextChiSq()

nextChiSq

public double nextChiSq(int df)

nextChiSq

public double nextChiSq(int df,
                        double lambda)

nextBeta

public double nextBeta(double alpha,
                       double beta)

main

public static void main(java.lang.String[] args)