Scratch for Java

Stage::pickRandom()

Returns a random integer between the specified range (inclusive).

Syntax

Java

.pickRandom(from, to)

Parameters

Name Data Type Description
from int the lower bound of the range (inclusive)
to int the upper bound of the range (inclusive)

Return

int

pickRandom()