%matplotlib inline
import matplotlib as mpl
from random import randrange
import numpy as np
import matplotlib.pyplot as plt

from random import randrange
pose=[]
for i in range(400): 
     pose.append([])
#print(pose)
#pose[-1]=1
#print(pose[-1])
pose[0]=200
for k in range(200):
    rand = randrange(0,2)
    if rand==0:
        #print(rand)
        pose[k+1]=pose[k]+1
    if rand==1:
        pose[k+1]=pose[k]-1
#print(pose)
yc=[]
for e in range(400): 
     yc.append([])
for q in range(400):
    yc[q]=0
    for h in range(400):
        if pose[h]==q:
            yc[q]=yc[q]+1
#print((yc))
#print(len(yc))
xc = np.arange(0, 400, 1)
plt.plot(yc)
plt.xlim(150, 250)