Suppose you’re hosting an event with limited slots, while also allowing friends to sign up together. The naive solution always has the problem that being in a group changes each person’s winning probability: it’s either way higher or way lower, depending on the group size.
This script was inspired by the Fusion Festival’s randomizer, and has the following properties:
The input format is simple: Each line is a group, with members separated by commas.