Math.random

Math.random

Class Overview | Class Members | This Package | All Packages

Syntax
public static synchronized double random()
Returns
a pseudorandom double between 0.0 and 1.0.
Description
Returns a random number between 0.0 and 1.0. Random number generators are often referred to as pseudorandom number generators because the numbers produced tend to repeat themselves after a period of time.

See Also
nextDouble