Scratch for Java

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

random

Parameters

Name Data Type Description
min double Minimum value of the random number
max double Maximum value of the random number

Return

double

random()