Class ApacheMathRandomGenerator
java.lang.Object
de.uka.ipd.sdq.probfunction.math.apache.impl.ApacheMathRandomGenerator
- All Implemented Interfaces:
IRandomStream
- Direct Known Subclasses:
MT19937RandomGenerator
Adapter for apache.math random generators.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionApacheMathRandomGenerator
(org.apache.commons.math.random.RandomGenerator rng) -
Method Summary
-
Field Details
-
rng
protected org.apache.commons.math.random.RandomGenerator rng
-
-
Constructor Details
-
ApacheMathRandomGenerator
public ApacheMathRandomGenerator(org.apache.commons.math.random.RandomGenerator rng)
-
-
Method Details
-
setSeed
public void setSeed(int[] seed) - Specified by:
setSeed
in interfaceIRandomStream
-
nextDouble
public double nextDouble()- Specified by:
nextDouble
in interfaceIRandomStream
-
setSeed
public void setSeed(long[] seed) - Specified by:
setSeed
in interfaceIRandomStream
-