Class 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 Detail

      • PredictableRandom

        public PredictableRandom()
      • PredictableRandom

        public PredictableRandom​(double[] doubleSeed,
                                 int[] intSeed)
    • Method Detail

      • nextDouble

        public double nextDouble()
        Overrides:
        nextDouble in class Random
      • nextInt

        public int nextInt​(int ignored)
        Overrides:
        nextInt in class Random
      • setIntSeed

        public void setIntSeed​(int[] intSeed)
      • setDoubleSeed

        public void setDoubleSeed​(double[] doubleSeed)
      • getDoubleCounter

        public int getDoubleCounter()
      • getIntCounter

        public int getIntCounter()
      • resetCounters

        public void resetCounters()