Удалил Untitled.ipynb

This commit is contained in:
Sergey Lemeshevsky
2020-03-18 21:39:35 +03:00
parent 7dba740376
commit 6a3c918bdc
24 changed files with 4029 additions and 810 deletions

View File

@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import random
position = 0
walk = [position]
steps = 1000
for i in range(100):
step = 1 if random.randint(0, 1) else -1
position += step
walk.append(position)
plt.plot(walk[:100])
plt.savefig('numpy-3.png')