Generate weights for Vose Alias sampling.
Applied to fair sampling for single or multiple Advent Calendars. Outputs list of names selected randomly but fairly given calendar preferences and availabilities.
- Clone repository
- Edit availability and preference data
- start pipenv:
pipenv shell
- Run
python weighted_sampler.py
fromweighted_random_sampler
directory to output list of names selected
randomly but fairly.
This package relies on the Vose Alias sampling method package as implemented by asmith26/Vose-Alias-Method
and was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.