Random Walk (left and right)

In this model the turtles engage in a "random walk." Each turtle walks forward one step at each clock tick. As they walk forward, they also take a step to the left or right. This movement is known as walking a square "lattice." A lattice is a set of points on the plane (or in space) that form a grid on which turtles walk.

Download the StarLogoT source code for the Random Walk (left and right) model:
Download random-lr

To run this file you need StarLogoT2002 for the Macintosh.
(download StarLogoT)

Click on one of the pictures to see a quicktime movie of the model: