|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Random
public class Random
Pseudo-random number generation.
Constructor Summary | |
---|---|
Random()
|
|
Random(long seed)
|
Method Summary | |
---|---|
boolean |
nextBoolean()
Returns a random boolean in the range 0-1. |
double |
nextDouble()
|
double |
nextGaussian()
Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence. |
int |
nextInt()
|
int |
nextInt(int n)
Returns a random integer in the range 0...n-1. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Random(long seed)
public Random()
Method Detail |
---|
public int nextInt()
public int nextInt(int n)
n
- the bound
public boolean nextBoolean()
public double nextDouble()
public double nextGaussian()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |