math
Class Random
java.lang.Object
math.Random
public class Random
- extends java.lang.Object
Copyright DocJava, inc. User: lyon
Date: Dec 24, 2004
Time: 6:25:08 PM
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Random
public Random()
getRandom
public static int getRandom()
lcg
public static int lcg(int seed)
lcgTest
public static void lcgTest()
hashCodeTest
public static void hashCodeTest()
jceKeyTest
public static void jceKeyTest()
throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
jceRandomNumberTest
public static void jceRandomNumberTest()
main
public static void main(java.lang.String[] args)
randTest
public static void randTest()
rand
public static int rand(int min,
int max)
- Compute a random integer
- Parameters:
min
- minimum intmax
- maximum int
- Returns:
- random int between
min
and max
inclusive.
getRandomColor
public static java.awt.Color getRandomColor()