All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.util.Random
If two instances of Random are created with the same
seed, and the same sequence of method calls is made for each, they
will generate and return identical sequences of numbers.
Many applications will find the random method in
class Math simpler to use.
long seed.
double value between 0.0 and
1.0 from this random number generator's sequence.
float
value between 0.0 and 1.0 from this random
number generator's sequence.
double value with mean 0.0 and standard
deviation 1.0 from this random number generator's sequence.
int
value from this random number generator's sequence.
long
value from this random number generator's sequence.
long seed.
method Random() public
method Random(seed=long) public
long seed.
method setSeed(seed=long) public protect
long seed.
method next(bits=int) returns int Inheritable protect
method nextBytes(bytes=byte[]) public
method nextInt() returns int public
int
value from this random number generator's sequence.
int
value from this random number generator's sequence.
method nextLong() returns long public
long
value from this random number generator's sequence.
long
value from this random number generator's sequence.
method nextFloat() returns float public
float
value between 0.0 and 1.0 from this random
number generator's sequence.
float
value between 0.0 and 1.0 from this
random number generator's sequence.
method nextDouble() returns double public
double value between 0.0 and
1.0 from this random number generator's sequence.
double value between 0.0 and
1.0 from this random number generator's sequence.
method nextGaussian() returns double public protect
double value with mean 0.0 and standard
deviation 1.0 from this random number generator's sequence.
double value with mean 0.0 and
standard deviation 1.0 from this random number
generator's sequence.
All Packages Class Hierarchy This Package Previous Next Index