So I ran into this progressive/idle game cleverly called Idle Dice. Has a variety of random effects applied to a pretty typical progression formula game. Warning, time sink! Play at your own risk.
However after you have 5 dice (summed the usual way) along with some bonuses for various matches (pair, two pair, three of a kind, etc), but after that you eventually get multiplier dice. These five dice are all multiplied against the total rolled by the first five dice and multiplicatively combine with each other.
Even later on you get access to a roulette wheel which can (if it lands on the right wedges) "skip 10 minutes." Sometimes longer, but all intervals are some multiple of 10 minutes.
Given the multiplier dice I have, how much will I make when I land on the "skip 10 minutes" wedge of the roulette wheel (figuring I can calculate the 20 minute and 1 hour wedges from there)? We'll ignore any upgraded multipliers and focus solely on the flat base values of each die (incremental games, being what they are, get to obscenely large values in a hurry).
- Five values in any reasonable format. Each value represents the number of faces of each of the five multiplier dice.
- Missing dice can either be explicitly specified (as 0) or left absent, your choice as long as it is made clear how your program accepts it.
- You can assume input values of 0, 2, 4, 6, 8, 10, 12, 20, and 100 will be used.
- For example an input of
[6,6,4,2]would indicate that there are 2 six-sided multiplier dice, 1 four sided, and 1 two sided, while
6 6 4 2 0would also be acceptable.
How the dice roll
- All ten dice are rolled once a second
- The five base dice are summed
- The sum is multiplied by each of the five multiplier's dice's face value
- That total is multiplied by the score bonus (if any)
- The five basic (six sided) dice will be assumed all present.
Score bonus values:
We'll assume the following score multipliers (which apply to the face results of the base 5 dice, not the multiplier dice):
- Pair: 2
- Triplet: 7
- Two-Pair: 5
- Four of a Kind: 60
- Straight: 20
- Full House (pair + triplet): 30
- Five of a Kind: 1500
This page has the odds listed out for the likelyhood of any given result, except a straight for some reason, which is
240/7776 (what's called a Large Straight, rather than a Short Straight).
Note: My original test cases were computed using an incorrect value of 2600/7776 odds for a Pair (correct value should be 3600). Given the existing answers, I am not fixing this.
Compute the expected average total over a 10 minute period (600 rolls) based on the inputs provided, assuming all dice are uniformly distributed. Output need only be accurate to the nearest whole value, but more precision is allowed.
Two extra decimal-fractions of precision included for convenience.
 -> 111643.52  -> 186072.53  -> 260501.54  -> 334930.56  -> 409359.57  -> 483788.58  -> 781504.63  -> 3758665.12 [2,2,2] -> 251197.92 [4,2,2] -> 418663.19 [6,6,6] -> 3191143.90 [2,2,2,2,2] -> 565195.31 [6,6,6,6,6] -> 39091512.83 [10,8,6,4,2] -> 24177799.48 [100,20,2,2,2] -> 133197695.3 [100,20,12,2,2] -> 577190013.02 [100,20,12,10,8] -> 6349090143.23 [100,100,100,100,100] -> 24445512498226.80