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
""" | |
This script is an example of how to pick groups of 'r' people randomly from within a larger sample of N people such that no single person appears in two groups. | |
I find this script useful when I have to divide my employees into groups randomly | |
""" | |
import argparse | |
import itertools | |
import random | |
#Note: Listing employees just to keep the example short | |
#You would (ideally) get a list of employees from some central datastore |