| java.lang.Object java.util.Random org.cougaar.lib.util.UTILRandom
UTILRandom | final public class UTILRandom extends Random (Code) | | |
finalize | protected void finalize()(Code) | | |
flipCoin | public boolean flipCoin()(Code) | | Filps a coin, true == head, false == tails
boolean |
instanceOf | public static UTILRandom instanceOf()(Code) | | Get an instance of the class
UTILRandom |
instanceOf | public static UTILRandom instanceOf(long seed)(Code) | | Get an instance of the class, if an instance of the class
already exists it will just reseed.
UTILRandom |
randomInt | public int randomInt(int range)(Code) | | Pseudo-random number between 0 and range-1
int, ArithmeticException if range is 0 |
randomInt | public int randomInt(int min, int max)(Code) | | Computes a pseudo-random integer between min and max
int, ArithmeticException is min > max |
|
|