Random Walk

Alexander Gross
Web Script, PHP
Summer 2005 - Spring 2007

Back to Projects
Random Walk
This was code which generated dynamic images using php's GD image library. Unfortunately that library is not longer available on this server, but these are some of the images that were created. Each time a user visted the page a random walk drawing was created for them. The walk started at a random location and continued until every possible pixel had been stepped on at least once. The number of steps on each pixel was scaled to a 10 level grayscale to create the image. The original code also gave the user complete statictics about the image including the start and end point. The number of steps on each pixel and the range of values used for the grayscale.
Some example images