This is just a simple assignment. If you have spare time try and do this
Instructions:
There is a game in which a player must roll 'n' number of six-sided dice. He then wins by getting a certain configuration of numbers (all odds, etc.). Develop a program that can accept an integer number of dice from the user, and return the probabilities of getting the different configurations as shown below.
Boundaries:
Assume that all dice are rolled in succession.
Output percentages can be in decimal, percentage, or fractional form.
Example input and output:
Input: 3
Output:
All the same number: 0.462963%
All odds: 50%
All the same number except for one of them: 2.3148148%
All greater than 3: 12.5%
Input: 5
Output:
All the same number: 0.0128601%
All odds: 50%
All the same number except for one of them: 0.0643004%
All greater than 3: 3.125%
Answer format:
This challenge can be completed using any language you wish (JavaScript or PHP is preferred).