For class today we attempted to use Mathematica to come up with a simple code to write a random path with the use of probabilities. This is the code Gary, Matt and I came up with:
(*This makes the first step of the random path.*)
randompath = {{0, 0}};
(*This defines the neighbors of the point{x,y}.*)
left[{x_, y_}] := [...]