Scratch for Java

Pen::goToRandomPosition()

Moves the object 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()