jeco.kernel.util
Class RandomGenerator

java.lang.Object
  extended by jeco.kernel.util.RandomGenerator

public class RandomGenerator
extends java.lang.Object


Field Summary
protected static java.util.Random randomGenerator
           
 
Constructor Summary
RandomGenerator()
           
 
Method Summary
static int[] intPermutation(int length)
           
static boolean nextBoolean()
           
static double nextDouble()
           
static double nextDouble(double lowerBound, double upperBound)
           
static int nextInt(int upperBound)
           
static int nextInt(int lowerBound, int upperBound)
           
static int nextInteger(int upperBound)
           
static int nextInteger(int lowerBound, int upperBound)
           
static void setSeed(long seed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

randomGenerator

protected static java.util.Random randomGenerator
Constructor Detail

RandomGenerator

public RandomGenerator()
Method Detail

setSeed

public static void setSeed(long seed)

nextDouble

public static double nextDouble()

nextDouble

public static double nextDouble(double lowerBound,
                                double upperBound)

nextInt

public static int nextInt(int lowerBound,
                          int upperBound)

nextInteger

public static int nextInteger(int lowerBound,
                              int upperBound)

nextInt

public static int nextInt(int upperBound)

nextInteger

public static int nextInteger(int upperBound)

nextBoolean

public static boolean nextBoolean()

intPermutation

public static int[] intPermutation(int length)