net.sourceforge.jabm.distribution
Class RandomGeneratorAdaptor

java.lang.Object
  extended by net.sourceforge.jabm.distribution.RandomGeneratorAdaptor
All Implemented Interfaces:
org.apache.commons.math3.random.RandomGenerator

public class RandomGeneratorAdaptor
extends java.lang.Object
implements org.apache.commons.math3.random.RandomGenerator

 

Field Summary
protected  cern.jet.random.engine.RandomEngine prng
           
 
Constructor Summary
RandomGeneratorAdaptor()
           
RandomGeneratorAdaptor(cern.jet.random.engine.RandomEngine prng)
           
 
Method Summary
 cern.jet.random.engine.RandomEngine getPrng()
           
 boolean nextBoolean()
           
 void nextBytes(byte[] arg0)
           
 double nextDouble()
           
 float nextFloat()
           
 double nextGaussian()
           
 int nextInt()
           
 int nextInt(int arg0)
           
 long nextLong()
           
 void setPrng(cern.jet.random.engine.RandomEngine prng)
           
 void setSeed(int arg0)
           
 void setSeed(int[] arg0)
           
 void setSeed(long arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prng

protected cern.jet.random.engine.RandomEngine prng
Constructor Detail

RandomGeneratorAdaptor

public RandomGeneratorAdaptor(cern.jet.random.engine.RandomEngine prng)

RandomGeneratorAdaptor

public RandomGeneratorAdaptor()
Method Detail

nextBoolean

public boolean nextBoolean()
Specified by:
nextBoolean in interface org.apache.commons.math3.random.RandomGenerator

nextBytes

public void nextBytes(byte[] arg0)
Specified by:
nextBytes in interface org.apache.commons.math3.random.RandomGenerator

nextDouble

public double nextDouble()
Specified by:
nextDouble in interface org.apache.commons.math3.random.RandomGenerator

nextFloat

public float nextFloat()
Specified by:
nextFloat in interface org.apache.commons.math3.random.RandomGenerator

nextGaussian

public double nextGaussian()
Specified by:
nextGaussian in interface org.apache.commons.math3.random.RandomGenerator

nextInt

public int nextInt()
Specified by:
nextInt in interface org.apache.commons.math3.random.RandomGenerator

nextInt

public int nextInt(int arg0)
Specified by:
nextInt in interface org.apache.commons.math3.random.RandomGenerator

nextLong

public long nextLong()
Specified by:
nextLong in interface org.apache.commons.math3.random.RandomGenerator

setSeed

public void setSeed(int arg0)
Specified by:
setSeed in interface org.apache.commons.math3.random.RandomGenerator

setSeed

public void setSeed(int[] arg0)
Specified by:
setSeed in interface org.apache.commons.math3.random.RandomGenerator

setSeed

public void setSeed(long arg0)
Specified by:
setSeed in interface org.apache.commons.math3.random.RandomGenerator

getPrng

public cern.jet.random.engine.RandomEngine getPrng()

setPrng

public void setPrng(cern.jet.random.engine.RandomEngine prng)