CHALLENGE
In this challenge, you will create a weighted digital dice.
The weighted dice has 10 faces with values 1 through 10. However, the odds of rolling a particular
number are as follows:
Numbers 1 to 4 have a 5% chance of being rolled.
Numbers 5 to 8 have a 10% chance of being rolled.
Numbers 9 and 10 have a 20% chance of being rolled.
SAMPLE
OUTPUT
SPECIFICATION
Make sure that your work is clear and well organized as
Mr. Campeau will have to analyze your code in order to verify it for
correctness.
|