A very small program presented at Nick Montfort's Salon 256.
To run this program, you'll need a wordlist file. The NPL has a number of wordlists; I recommend ENABLE.
Once you've downloaded the wordlist file:
ruby randomwalk.rb <wordlist>
There is also a browser version.