SET-RANDOM-POSITIONBegin NetLogo code:
set my-x random-xcor set my-y random-ycorEnd NetLogo code
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.
This sets the value of my-x to a random coordinate and my-y to another random coordinate.
This was implemented by Ken Kahn