Random::random()
Returns a random number. You can optionally choose the minimum and maximum of that number.
Syntax
Java
.random()
.random(max)
.random(min, max)
Scratch
Parameters
Name | Data Type | Description |
---|---|---|
min | double | Minimum value of the random number |
max | double | Maximum value of the random number |
Return
double