Sign In
Represent different types of winning tickets as particular numbers. Then simulate the results of a raffle by generating random numbers.
See solution.
We are given information about the distribution of prizes in a contest. Let's present the data in a frequency table.
| Type | Frequency |
|---|---|
| Grand Prize | 1 |
| First Prize | 5 |
| Second Prize | 20 |
We know that there are 250 tickets in a raffle in total. We want to simulate the results of the raffle. To do so we will represent each drawn ticket by a random number between 1 and 250. In particular, some of the numbers will correspond to different prizes.
| Prize | Ticket Number |
|---|---|
| Grand | 1 |
| First | 2-6 |
| Second | 7-26 |
| None | 27-250 |
Now we will generate at least 25 numbers to simulate the results. Note that the numbers have to be unique, because two people cannot win the same prize. Therefore, if some number is repeated, we will just skip it and continue generating until we have 25 unique numbers. ccccc 110 & 219 & 109 & 11 & 182 229 & 91 & 73 & 201 & 141 160 & 79 & 1 & 217 & 133 41 & 151 & 206 & 50 & 22 60 & 51 & 105 & 26 & 3 Keep in mind that this is just one possible simulation we can perform by generating different random numbers. Note that there are the grand prize, one first prize, and two second prizes in our simulation.