Skip to content

Instantly share code, notes, and snippets.

@AlicanAKCA
Last active February 21, 2021 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlicanAKCA/361e8a7607ff5bc6257e3960b0e76598 to your computer and use it in GitHub Desktop.
Save AlicanAKCA/361e8a7607ff5bc6257e3960b0e76598 to your computer and use it in GitHub Desktop.
from matplotlib import pyplot as plt
from random import randint
num1 =0
num2=0
summary = 0
mean = 0
numberOfBeats = 0
plt.title('')
plt.ylabel('Mean')
plt.xlabel('Number Of Beats')
x = []
y = []
while num2 <= 10000:
num1 = 0
mean = 0
while num1<=100:
sumamry += randint(1,6)
num1 +=1
numberOfBeats += 100
mean = summary /numberOfBeats
y.append(mean)
x.append(numberOfBeats)
num2 += 1
print(x)
print(y)
plt.plot(x,y, color = "red")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment