N = 100
pos= position_1D(N)
t = [1:N]
plot(t,pos')

figure(0)
posbis= position_1D_bis()

[X,Y]= position_2D(1000)

figure(1)
plot2d(X,Y)

distance = zeros(100)
for i=1:100
  [X,Y]= position_2D(1000)  
  distance(i) = max_distance(X,Y)
end

figure(2)
tt = 1:100
plot(tt,distance')
