Simple python random

Recently, I had to chose randomly 4 people for a thankless task. It was the perfect occasion to code a simple script using the Python random module:
# -*- coding: utf-8 -*-
import random
people_initials = ['ML','WD','ME','BH','FS','AQ','SB','FR','KB','LL','FP','MG','AH','FJ']
rand_people = random.sample(people_initials, 4)
print rand_people


Don’t name your script or it won’t work.

Leave a Reply

Your email address will not be published. Required fields are marked *