Interface IRandomGenerator


public interface IRandomGenerator
The Interface IRandomGenerator.
  • Method Details

    • nextInt

      int nextInt(int bound)
      Next int.
      Parameters:
      bound - the bound
      Returns:
      the int
    • newInstance

      IRandomGenerator newInstance(long seed)
      New instance.
      Parameters:
      seed - the seed
      Returns:
      the i random generator
    • nextDouble

      double nextDouble()
      Next double.
      Returns:
      the double
    • nextGaussian

      double nextGaussian()
      Next gaussian.
      Returns:
      the double
    • probability

      boolean probability(double functionProbability)
      Probability.
      Parameters:
      functionProbability - the function probability
      Returns:
      true, if successful
    • getRandom

      Random getRandom()
      Gets the random.
      Returns:
      the random
    • nextLong

      long nextLong()
      Next long.
      Returns:
      the long
    • clone

      IRandomGenerator clone(long seed)
      Clone.
      Parameters:
      seed - the seed
      Returns:
      the i random generator
    • nextDouble

      double nextDouble(double min, double max, double step, int roundTo)
    • nextBool

      boolean nextBool()
    • nextInt

      int nextInt(int min, int max, int step)