net.sourceforge.jabm.distribution
Class RandomGeneratorAdaptor
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prng
protected cern.jet.random.engine.RandomEngine prng
RandomGeneratorAdaptor
public RandomGeneratorAdaptor(cern.jet.random.engine.RandomEngine prng)
RandomGeneratorAdaptor
public RandomGeneratorAdaptor()
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)