Python, Matplotlib, Animation, Statistics, Code.
plt.figure() no_of_steps = 50 def randomwalksimulate(): #setting up steps for simulating 2D dims = 2 step_n = no_of_steps step_set = [-1, 0, 1] origin = np.zeros((1,dims)) # Simulate steps in 2D step_shape = (step_n,dims) steps = np.random.choice(a=step_set, size=step_shape) path =