Random.Random

Random.Random

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Random()
Description
Creates a new random number generator. Its seed is initialized to a value based on the current time.

See Also
currentTimeMillis



Syntax 2
public Random( long seed )
Parameters
seed
the initial seed.
Description
Creates a new random number generator using a single long seed.

See Also
setSeed