Skip to content

Instantly share code, notes, and snippets.

@maluta
Forked from alvesjnr/sena.py
Created April 26, 2012 15:34
Show Gist options
  • Save maluta/2500407 to your computer and use it in GitHub Desktop.
Save maluta/2500407 to your computer and use it in GitHub Desktop.
Quantos sorteios para você ganhar na mega sena?
import random
my_numbers = set(random.sample(xrange(1,61),6))
if __name__ == '__main__':
count = 1
while my_numbers != set(random.sample(xrange(1,61),6)):
count += 1
print count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment