Scratch für Java

Random::randomInt()

Returns a random integer. You can optionally choose the minimum and maximum of that number.

Syntax

Java

.randomInt()
.randomInt(max)
.randomInt(min, max)

Scratch

random integer

Parameter

Name Datentyp Beschreibung
min int Minimum value of the random number
max int Maximum value of the random number

Rückgabe

int

randomInt()