Skip to content

Instantly share code, notes, and snippets.

@jvanlier
Created January 22, 2015 16:59
Show Gist options
  • Save jvanlier/7156eea5e9fe43b37070 to your computer and use it in GitHub Desktop.
Save jvanlier/7156eea5e9fe43b37070 to your computer and use it in GitHub Desktop.
Random kamer picker
#!/usr/bin/python
import random
wintersporters = ['jan', 'jori', 'sander', 'erik', 'faab', 'gossie', 'maarten', 'justin']
room_one = random.sample(wintersporters, len(wintersporters)//2)
room_two = filter(lambda x: x not in room_one, wintersporters)
print('Kamer 1: %s ' % room_one)
print('Kamer 2: %s ' % room_two)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment