Scratch for Java

Stage::pickRandom()

A random whole number between two numbers, both included.

Examples

View on GitHub

Syntax

Java

.pickRandom(from, to)

Scratch

(pick random (from) to (to))

Parameters

Name Data Type Description
from int the lowest
to int the highest

Return

int

pickRandom()

Create Shareable URL

Select Sections