Created
March 8, 2017 12:58
-
-
Save uktechreviews/fadcbe308a5901dcdf98dbfe54a63e43 to your computer and use it in GitHub Desktop.
null created by uktechreviews - https://repl.it/GMTL/1
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 * | |
particles = [] | |
total = 100000 | |
while (total > 1) : | |
for i in range (total): | |
face = randint(1,6) | |
particles.append(face) | |
for items in particles: | |
if items == 6: | |
total -=1 | |
particles = [] | |
print (str(total)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
first version