Package org.powertac.evcustomer
Class PredictableRandom
- java.lang.Object
-
- java.util.Random
-
- org.powertac.evcustomer.PredictableRandom
-
- All Implemented Interfaces:
Serializable
public class PredictableRandom extends Random
- Version:
- 0.5, Date: 2013.11.28
- Author:
- Govert Buijs
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PredictableRandom()
PredictableRandom(double[] doubleSeed, int[] intSeed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDoubleCounter()
int
getIntCounter()
double
nextDouble()
int
nextInt(int ignored)
void
resetCounters()
void
setDoubleSeed(double[] doubleSeed)
void
setIntSeed(int[] intSeed)
-
-
-
Method Detail
-
nextDouble
public double nextDouble()
- Overrides:
nextDouble
in classRandom
-
setIntSeed
public void setIntSeed(int[] intSeed)
-
setDoubleSeed
public void setDoubleSeed(double[] doubleSeed)
-
getDoubleCounter
public int getDoubleCounter()
-
getIntCounter
public int getIntCounter()
-
resetCounters
public void resetCounters()
-
-