Category:Locations

Generates a random x and y position.

This block can be used anywhere a location block is needed.

Examples

Example 1

The bunny will appear at a random location each time the project is run.

Example 2

Every time the ghost is clicked, it will jump to a random location.

Tips

  • Sprites can begin at a random location or move to a random location after an event.

Found a bug in the documentation? Let us know at documentation@code.org