Class Randoms

java.lang.Object
org.highlife.api.methods.Randoms

public class Randoms extends Object
  • Constructor Details

    • Randoms

      public Randoms()
  • Method Details

    • random

      public static int random(int high)
    • random

      public static int random(int min, int max)
    • nextLogNormalDistributionRandom

      public static double nextLogNormalDistributionRandom(double scale, double shape) throws org.apache.commons.math3.exception.NotStrictlyPositiveException
      Throws:
      org.apache.commons.math3.exception.NotStrictlyPositiveException
    • random

      public static double random(double lower, double upper)
    • random

      public static long random(long min, long max)
    • nextGaussianRandom

      public static double nextGaussianRandom(double mean, double sigma)
    • nextHypergeometricRandom

      public static double nextHypergeometricRandom(int populationSize, int numberOfSuccesses, int sampleSize)
    • nextGammaRandom

      public static double nextGammaRandom(int shape, int scale)
    • setSeed

      public static void setSeed(long seed)
    • setSeed

      public static void setSeed(String salt)
    • getSecureRandom

      public static Random getSecureRandom()
    • chance

      public static boolean chance(int target, int overall)
    • chance

      public static boolean chance(int target)
    • getSeededInt

      public static int getSeededInt(String seed, int min, int max)
    • getSeededDouble

      public static double getSeededDouble(String seed, double min, double max)