Created
August 22, 2011 14:19
-
-
Save sli/1162485 to your computer and use it in GitHub Desktop.
Google Music invitation contest script.
This file contains hidden or 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
| import random | |
| participants = [ | |
| # Participants here | |
| ] | |
| winners = [] | |
| while len(winners) < 4: | |
| c = random.choice(participants) | |
| if c not in winners: | |
| winners.append(c) | |
| print 'Winners:' | |
| for w in winners: | |
| print ' - %s' % w | |
| raw_input() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment