Dice Counting Exercise Hints
Follow each of the steps sequencially:
- Calculate what is the maximum possible value for two six-sided dice. Store that value as MAX_DICE_ROLL.
- Create a list with MAX_DICE_ROLL + 1 elements (with each element set to 0).
- Choose a random number between 1 and 6 (inclusive), twice. Sum those numbers.
- Add 1 to the value at that index of the sum.
- Repeat steps 3-4 999,999 more times.
- Calculate what is the minimum possible value for two six-sided dice. Store that value as MIN_DICE_ROLL.
- Iterate through values MIN_DICE_ROLL..MAX_DICE_ROLL (inclusively) and display the value and count.