Last active
September 28, 2019 09:43
-
-
Save kukumber/27d6fa399158f48dd1d8b7bd174fc52e to your computer and use it in GitHub Desktop.
This file contains 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 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