I need to create a weighted lottery where people can have multiple entries and the number of entries is based upon a series of questions. For each question they get right, they get an entry into the lottery.
In my head, I've got a table with the participants' names and their total number of points (entries), then I need some way to have a list of the names with their multiple entries. So if my initial table looked like this:
| Name | Points |
|---|---|
| John | 5 |
| Larry | 4 |
| Andre | 2 |
| Mika | 6 |
Then my output list would look like this:
| Name |
|---|
| John |
| John |
| John |
| John |
| John |
| Larry |
| Larry |
| Larry |
| Larry |
| Andre |
| Andre |
| Mika |
| Mika |
| Mika |
| Mika |
| Mika |
| Mika |
Then I could just use the default row leaders from the output table as the entry for the person and use a random number generator to pick numbers.
That being said, I'm open to other ideas.
