Skip to content

Instantly share code, notes, and snippets.

@alexoliveira
Created July 19, 2012 21:49
Show Gist options
  • Save alexoliveira/3147087 to your computer and use it in GitHub Desktop.
Save alexoliveira/3147087 to your computer and use it in GitHub Desktop.
Probability of repeating same combination
choices = float(10**8)
p = 1
for i in range (1000):
p = p * (choices - i) / choices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment