Created
May 7, 2021 15:45
-
-
Save telliott99/a5bb35bd526afb925492f7ba5a5d1322 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matplotlib import pyplot as plt | |
import sys, random | |
k = int(sys.argv[1]) | |
N = 100000 | |
L = list() | |
for i in range(N): | |
v = 0 | |
for j in range(k): | |
v += random.random() | |
L.append(v) | |
plt.hist(L,100) | |
plt.savefig('example' + str(k) + '.png') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment