Class ApacheMathRandomGenerator
- java.lang.Object
-
- de.uka.ipd.sdq.probfunction.math.apache.impl.ApacheMathRandomGenerator
-
- All Implemented Interfaces:
IRandomStream
- Direct Known Subclasses:
MT19937RandomGenerator
public class ApacheMathRandomGenerator extends Object implements IRandomStream
Adapter for apache.math random generators.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.math.random.RandomGenerator
rng
-
Constructor Summary
Constructors Constructor Description ApacheMathRandomGenerator(org.apache.commons.math.random.RandomGenerator rng)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
nextDouble()
void
setSeed(int[] seed)
void
setSeed(long[] seed)
-
-
-
Method Detail
-
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
-
-