|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jebl.math.Random
public class Random
Random number generation.
Method Summary | |
---|---|
static double[] |
getNormalized(double[] array)
|
static double |
getTotal(double[] array)
|
static double |
getTotal(double[] array,
int start,
int end)
|
static boolean |
nextBoolean()
Access a default instance of this class, access is synchronized |
static byte |
nextByte()
Access a default instance of this class, access is synchronized |
static void |
nextBytes(byte[] bs)
Access a default instance of this class, access is synchronized |
static char |
nextChar()
Access a default instance of this class, access is synchronized |
static double |
nextDouble()
Access a default instance of this class, access is synchronized |
static float |
nextFloat()
Access a default instance of this class, access is synchronized |
static double |
nextGaussian()
Access a default instance of this class, access is synchronized |
static int |
nextInt()
Access a default instance of this class, access is synchronized |
static int |
nextInt(int n)
Access a default instance of this class, access is synchronized |
static long |
nextLong()
Access a default instance of this class, access is synchronized |
static short |
nextShort()
Access a default instance of this class, access is synchronized |
static int |
randomChoice(double[] cf)
|
static void |
setSeed(long seed)
Access a default instance of this class, access is synchronized |
static void |
shuffle(int[] array)
Shuffles an array. |
static void |
shuffle(int[] array,
int numberOfShuffles)
Shuffles an array. |
static int[] |
shuffled(int l)
Returns an array of shuffled indices of length l. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int randomChoice(double[] cf)
public static double[] getNormalized(double[] array)
public static double getTotal(double[] array, int start, int end)
end
- the index of the element after the last one to be included
public static double getTotal(double[] array)
public static void setSeed(long seed)
public static byte nextByte()
public static boolean nextBoolean()
public static void nextBytes(byte[] bs)
public static char nextChar()
public static double nextGaussian()
public static double nextDouble()
public static float nextFloat()
public static long nextLong()
public static short nextShort()
public static int nextInt()
public static int nextInt(int n)
public static void shuffle(int[] array)
public static void shuffle(int[] array, int numberOfShuffles)
public static int[] shuffled(int l)
l
- length of the array required.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |