Dice Roll
purpose:
Website link: replit.com/@JoelKasthurirat/Joeldice#main.cpp
joeldice.zip |
Sample Code
Choose a roll amount that is between 1 and 1000: 0
Invalid Input
Choose a roll amount that is between 1 and 1000: 10001
Invalid Input
Choose a roll amount that is between 1 and 1000: 10
6 1 3 5 2 6 5 4 3
5
Total number of roll: 10
Number Probabilities
Number 1: 1 = 10%
Number 2: 1 = 10%
Number 3: 2 = 20%
Number 4: 1 = 10%
Number 5: 3 = 30%
Number 6: 2 = 20%
To repeat y-yes, n-no. Enter choice: y
Choose a roll amount that is between 1 and 1000: 10
6 5 5 2 6 3 5 1 3
4
Total number of roll: 10
Number Probabilities
Number 1: 1 = 10%
Number 2: 1 = 10%
Number 3: 2 = 20%
Number 4: 1 = 10%
Number 5: 3 = 30%
Number 6: 2 = 20%
To repeat y-yes, n-no. Enter choice: n
Goodbye. Thank You For Visting
Invalid Input
Choose a roll amount that is between 1 and 1000: 10001
Invalid Input
Choose a roll amount that is between 1 and 1000: 10
6 1 3 5 2 6 5 4 3
5
Total number of roll: 10
Number Probabilities
Number 1: 1 = 10%
Number 2: 1 = 10%
Number 3: 2 = 20%
Number 4: 1 = 10%
Number 5: 3 = 30%
Number 6: 2 = 20%
To repeat y-yes, n-no. Enter choice: y
Choose a roll amount that is between 1 and 1000: 10
6 5 5 2 6 3 5 1 3
4
Total number of roll: 10
Number Probabilities
Number 1: 1 = 10%
Number 2: 1 = 10%
Number 3: 2 = 20%
Number 4: 1 = 10%
Number 5: 3 = 30%
Number 6: 2 = 20%
To repeat y-yes, n-no. Enter choice: n
Goodbye. Thank You For Visting