Skip to content

Instantly share code, notes, and snippets.

@kukumber
Last active September 28, 2019 09:43
Show Gist options
  • Save kukumber/27d6fa399158f48dd1d8b7bd174fc52e to your computer and use it in GitHub Desktop.
Save kukumber/27d6fa399158f48dd1d8b7bd174fc52e to your computer and use it in GitHub Desktop.
from random import randint, seed
import numpy as np
def main():
result = []
seed(30)
for _ in range(50):
x = [randint(1,6) for i in range(12)]
result.append(np.sum(x))
print(np.mean(result))
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment