Java Mathrandom() Method
Definition and Usage
Therandom() method returns a random number between 0 and 1.
This method never returns exactly 1, but it can return 0.
Syntax
public static double random()Technical Details
| Returns: | Adouble value representing a randomly selected number between 0 and 1, excluding 1 itself. |
|---|---|
| Java version: | Any |
❮ Math Methods

