I think you focussed on the wrong post.
You are discussing with Josh, but others already mentioned a good
solution:"ask google".
It took me less than a minute to find a function which makes a random walk
and plot the path.
So if you are out there to study such code, go search for it, and if you
don't get it, post the code here you don't understand and ask specific.
Also, asking for giving some code without proving your tried it on yourself,
isn't a good way to ask here.
Why don't you give it a try yourself, and if you are stuck, come back, post
your code and explain what doesn't work. I'm sure there are people who will
help you if they can.
good luck
Bart