So I'm trying to help a friend out with a solution where people donate to a cause and randomly get selected. The problem is, the more you donate, the greater the chance you have of being selected.
Say I have a dictionary of people:
people = {
"Mike":0,
"Mark":4,
"Zach":2,
"Bryan":2,
"Eddie":1
"Erin":0,
}
Is there a way that a person can be randomly picked from this dictonary, but based on their value, give them a greater chance of winning?