Created
July 10, 2012 16:29
-
-
Save binarymatt/3084475 to your computer and use it in GitHub Desktop.
raffle chooser
This file contains 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 | |
f = open('raffle_recipients.txt') | |
recipient_list = set([i.strip() for i in f.readlines()]) | |
chooser = random.SystemRandom() | |
print chooser.sample(recipient_list, 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment