Package org.rspeer.commons.math
Class Random
java.lang.Object
org.rspeer.commons.math.Random
Provides functions to retrieve random numbers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static double
nextDouble
(double max) static double
nextDouble
(double min, double max) static <T> T
nextElement
(Collection<T> elements) static <T> T
nextElement
(T[] elements) static <T> T
nextElement
(T[] elements, T defaultValue) static double
static int
nextInt()
static int
nextInt
(int max) static int
nextInt
(int min, int max) static long
nextLong
(long max) static long
nextLong
(long min, long max) static Point
-
Constructor Details
-
Random
public Random()
-
-
Method Details
-
nextInt
public static int nextInt() -
nextInt
public static int nextInt(int max) -
nextInt
public static int nextInt(int min, int max) -
nextDouble
public static double nextDouble(double max) -
nextDouble
public static double nextDouble(double min, double max) -
nextBoolean
public static boolean nextBoolean() -
nextElement
public static <T> T nextElement(T[] elements, T defaultValue) -
nextElement
public static <T> T nextElement(T[] elements) -
nextElement
-
nextGaussian
public static double nextGaussian() -
nextLong
public static long nextLong(long max) -
nextLong
public static long nextLong(long min, long max) -
nextPoint
-