Skip to content

Instantly share code, notes, and snippets.

@AlicanAKCA
Last active February 21, 2021 12:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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