|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.Random
public class Random
This class implements a pseudo-random number generator.
| Constructor Summary | |
|---|---|
Random()
Constructs a random number generator using the system clock to generate the seed. |
|
Random(long seed)
Constructs a random number generator given a seed. |
|
| Method Summary | |
|---|---|
protected int |
next(int bits)
|
int |
nextInt()
Returns the next random integer. |
int |
nextInt(int n)
Returns a random integer between 0 and n-1. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
|---|
public Random()
public Random(long seed)
seed - The seed.| Method Detail |
|---|
protected int next(int bits)
public int nextInt()
public int nextInt(int n)
n - a positive integer
|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||