I jump to a random location.

Begin micro-behaviour

SET-RANDOM-POSITION

Begin NetLogo code:
set my-x random-xcor
set my-y random-ycor
End NetLogo code

Related Micro-behaviours

SET-RANDOM-HEADING sets my heading to a random value. SET-RANDOM-UNOCCUPIED-POSITION also finds a random position but only if it is unoccupied.

How this works

This sets the value of my-x to a random coordinate and my-y to another random coordinate.

History

This was implemented by Ken Kahn