Skip to content

Instantly share code, notes, and snippets.

@zzzz465
Created April 25, 2019 12:20
Show Gist options
  • Save zzzz465/9c0864939888e89c0ecff1a1a6a5116e to your computer and use it in GitHub Desktop.
Save zzzz465/9c0864939888e89c0ecff1a1a6a5116e to your computer and use it in GitHub Desktop.
고두범
import random
test_table = list()
for i in range(10):
i += 1
test_table += [i for x in range(100)] #1 100개, 2 100개, 3 100개...가 든 test_table 을 만드는 코드, 총 1000개가 test_Table 안에 들어있음
test_average = [(sum([random.choice(test_table) for x in range(10)])/10) for x in range(10000)]
import matplotlib.pyplot as plt
plt.hist(test_average, bins=200)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment