Scratch for Java

Sprite::goToRandomPosition()

Moves the sprite to a random position within the boundaries of the stage. The new position is determined by generating random coordinates within the width and height of the stage.

Examples

View on GitHub

Syntax

Java

.goToRandomPosition()

Scratch

go to [random position v]

Return

void

goToRandomPosition()

Create Shareable URL

Select Sections