All Packages Class Hierarchy This Package Previous Next Index
Class cs005.util.BoundedRandom
java.lang.Object
|
+----cs005.util.BoundedRandom
- public class BoundedRandom
- extends Object
-
BoundedRandom()
- The default constructor seeds itself
-
BoundedRandom(long)
- Creates a BoundedRandom with the specified seed.
-
getRandom(int)
- Gets a value between (and including) 0 and max
-
getRandom(int, int)
- Gets a value between (and including) min and max
-
seed(long)
- Re-seeds the random generator
BoundedRandom
public BoundedRandom()
BoundedRandom
public BoundedRandom(long seed)
seed
public void seed(long seed)
getRandom
public int getRandom(int min,
int max)
getRandom
public int getRandom(int max)
All Packages Class Hierarchy This Package Previous Next Index