Thanks to our community sponsors we have some prizes to raffle, so we have created a script that will pick random people as winners.
The selection process is as follows:
- Read the whole list of attendees (we don't include organizers, staff, speakers or sponsors) and pick only those that were registered at event's opening. This list is not available in this repo for privacy reasons.
- Shuffle that list.
- Pick
p
random numbers from 0 ton
, wherep
is the number of prizes andn
is the number of attendees picked in step 1. - Create a list by picking attendees at index
w
wherew
is each one of the numbers picked in step 3. - Shuffle the "pre-winners" list.
- Assign each prize a winner from the result list in step 5.