Chapter 15: Problem 4
Modified Random Walks: In the class Randomwalk, x_step and Y_step are generated from the same set of conditions. The direction is chosen randomly from the list \([1,-1]\) and the distance from the list \([0,1,2,3,4]\). Modify the values in these lists to see what happens to the overall shape of your walks. Try a longer list of choices for the distance, such as 0 through 8 , or remove the \(-1\) from the \(x\) or \(y\) direction list.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.