Package org.rspeer.commons.math
Class Random
- java.lang.Object
- 
- org.rspeer.commons.math.Random
 
- 
 public class Random extends Object Provides functions to retrieve random numbers
- 
- 
Constructor SummaryConstructors Constructor Description Random()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleannextBoolean()static doublenextDouble(double max)static doublenextDouble(double min, double max)static intnextElement(int[] elements)static <T> TnextElement(Collection<T> elements)static <T> TnextElement(T[] elements)static <T> TnextElement(T[] elements, T defaultValue)static doublenextGaussian()static intnextInt()static intnextInt(int max)static intnextInt(int min, int max)static longnextLong(long max)static longnextLong(long min, long max)static PointnextPoint(Rectangle r)
 
- 
- 
- 
Method Detail- 
nextIntpublic static int nextInt() 
 - 
nextIntpublic static int nextInt(int max) 
 - 
nextIntpublic static int nextInt(int min, int max)
 - 
nextDoublepublic static double nextDouble(double max) 
 - 
nextDoublepublic static double nextDouble(double min, double max)
 - 
nextBooleanpublic static boolean nextBoolean() 
 - 
nextElementpublic static <T> T nextElement(T[] elements, T defaultValue)
 - 
nextElementpublic static <T> T nextElement(T[] elements) 
 - 
nextElementpublic static <T> T nextElement(Collection<T> elements) 
 - 
nextElementpublic static int nextElement(int[] elements) 
 - 
nextGaussianpublic static double nextGaussian() 
 - 
nextLongpublic static long nextLong(long max) 
 - 
nextLongpublic static long nextLong(long min, long max)
 
- 
 
-