Skip to content

Instantly share code, notes, and snippets.

@Deathnerd
Created July 13, 2014 19:52
Show Gist options
  • Save Deathnerd/180e2181fad0fe561443 to your computer and use it in GitHub Desktop.
Save Deathnerd/180e2181fad0fe561443 to your computer and use it in GitHub Desktop.
__author__ = 'deathnerd'
count = 0.0
for i in range(1, 7):
for j in range(1, 7):
for k in range(1, 7):
if (i+j+k)*10 <= 60:
count += 1
number_of_combinations = float(6*6*6)
print "Your character has a %.6f chance of being mentally retarded" % (count/number_of_combinations)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment