Skip to content

Instantly share code, notes, and snippets.

@binarymatt
Created July 10, 2012 16:29
Show Gist options
  • Save binarymatt/3084475 to your computer and use it in GitHub Desktop.
Save binarymatt/3084475 to your computer and use it in GitHub Desktop.
raffle chooser
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