Random Walk  
  in the Plane  
 

Note: I can run one version of this on my system with the commands:

Java Applet
 that carries out 
 a Random Walk 
in the Plane
 
The applet creates 8 threads that produce random walks in the plane concurrently, displaying them using 8 colors.

Each walk is a sequence of squares of the color of that walk. Since the squares are colored in an interleaved fashion, the most recent color overwrites earlier ones.

Each walk can be independently suspended or resumed with a button at the top (beside its color). A suspended walk has its color changed to red in the box for that walk at the top. No further changes are made to that walk until it is resumed, by pushing the same button.

Sample results are shown at the right,

This code was written around 2000, so it uses older features of Java. It will also produce different cell sizes. Here are four applets doing walks of different sizes.

Here is a Java source listing.
 
Here are questions I asked about this program.