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.
Examples
Syntax
Java
.goToRandomPosition()
Return
void