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 -- View this message in context: http://r.789695.n4.nabble.com/Need-help-with-my-homework-tp3238794p3241802.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.