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.

Syntax

Java

.goToRandomPosition()

Return

void

goToRandomPosition()