public class RandomGeneratorAdaptor extends Object implements org.apache.commons.math3.random.RandomGenerator
Modifier and Type | Field and Description |
---|---|
protected cern.jet.random.engine.RandomEngine |
prng |
Constructor and Description |
---|
RandomGeneratorAdaptor() |
RandomGeneratorAdaptor(cern.jet.random.engine.RandomEngine prng) |
Modifier and Type | Method and Description |
---|---|
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) |
public RandomGeneratorAdaptor(cern.jet.random.engine.RandomEngine prng)
public RandomGeneratorAdaptor()
public boolean nextBoolean()
nextBoolean
in interface org.apache.commons.math3.random.RandomGenerator
public void nextBytes(byte[] arg0)
nextBytes
in interface org.apache.commons.math3.random.RandomGenerator
public double nextDouble()
nextDouble
in interface org.apache.commons.math3.random.RandomGenerator
public float nextFloat()
nextFloat
in interface org.apache.commons.math3.random.RandomGenerator
public double nextGaussian()
nextGaussian
in interface org.apache.commons.math3.random.RandomGenerator
public int nextInt()
nextInt
in interface org.apache.commons.math3.random.RandomGenerator
public int nextInt(int arg0)
nextInt
in interface org.apache.commons.math3.random.RandomGenerator
public long nextLong()
nextLong
in interface org.apache.commons.math3.random.RandomGenerator
public void setSeed(int arg0)
setSeed
in interface org.apache.commons.math3.random.RandomGenerator
public void setSeed(int[] arg0)
setSeed
in interface org.apache.commons.math3.random.RandomGenerator
public void setSeed(long arg0)
setSeed
in interface org.apache.commons.math3.random.RandomGenerator
public cern.jet.random.engine.RandomEngine getPrng()
public void setPrng(cern.jet.random.engine.RandomEngine prng)
Copyright © 2014. All rights reserved.