Here is a simulation of a "frog" doing a (1/3,1/3,1/3) random walk around a circle of n lily pads. (If you have trouble running the applet, see these notes.)
The applet accepts the following keyboard inputs. (You may need to "click" on the applet first.)
[See also my Applets Page / Home Page]