Skip to content

Instantly share code, notes, and snippets.

@uktechreviews
Created March 8, 2017 12:58
Show Gist options
  • Save uktechreviews/fadcbe308a5901dcdf98dbfe54a63e43 to your computer and use it in GitHub Desktop.
Save uktechreviews/fadcbe308a5901dcdf98dbfe54a63e43 to your computer and use it in GitHub Desktop.
null created by uktechreviews - https://repl.it/GMTL/1
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))
@uktechreviews
Copy link
Author

first version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment