Namelist (one per line, up to 1000):
of equal probability
Probability of each person (one per line):
(The sum of probabilities is no need to be 1. For example, if you input $3$, $4$, $5$, then the probabilities will be $\dfrac3{12}$, $\dfrac4{12}$, $\dfrac5{12}$, respectively.)
Result: