Skip to content

Instantly share code, notes, and snippets.

@AlicanAKCA

AlicanAKCA/dice.py

Last active Feb 21, 2021
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