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 intgetDoubleCounter()intgetIntCounter()doublenextDouble()intnextInt(int ignored)voidresetCounters()voidsetDoubleSeed(double[] doubleSeed)voidsetIntSeed(int[] intSeed)
-
-
-
Method Detail
-
nextDouble
public double nextDouble()
- Overrides:
nextDoublein 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()
-
-