Friday, March 6, 2020

Podcast Episode 15: Pick a Person

This algorithm is designed to select a random participant from a group by having each participant select a random number.
This allows for a decentralized and tamper proof way to select a random participant.
Following is a brief explanation:
Each Participant picks a number between 1 and the number of participants.
You then take the sum of the numbers and get the remainder after dividing by the number of participants.
The remainder is the participant that is selected. (remainder 0 is the last participant)
To see an example of a single round click here.

To run a test to see if the algorithm is truly random click here.

No comments:

Post a Comment