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

Parameters

NameData TypeDescription
mindoubleMinimum value of the random number
maxdoubleMaximum value of the random number

Return

double