lackattack wrote:New "Intensity Cubes"
by lackattack on June 21st, 2010, 12:20 pm
We haven't touched the dice... erm, intensity cubes since February 14, 2006 because they were pretty darn random (see here). However, thanks to some prodding and advice from Dako, sherkaner and jakewilliams I became convinced that it is worthwhile to make some alterations.
This is how the intensity cubes now work:
• We have a series of 50,000 high quality random numbers from random.org
• Each time the game engine generates a random intensity cube, the next number is read in sequence from the series (e.g. in a 3v1 attack 4 numbers are read sequentially)
• When the last number in the series is read, we "rewind" and continue with the first number in the series
The advantages are twofold:
• Each individual number in the series is used for both attacker and defender, so our intensity cubes cannot be biased for either side.
• The series is stored in memory so the dice perform much faster. This makes a huge difference when auto-assault is used with large numbers of troops on both sides.
50,000 numbers means there are 8333.333 dice “sides” (6-sided die, divide 50000 by 6) which means that there are 2 extra numbers. Whichever the extra 2 numbers are, makes the odds of getting those numbers higher than the odds of getting the other numbers.
When the “rewind” is first done, that first roll has the most likely chance of being random, but future rolls become more and more affected by what happened last (picking from what’s left).
For the dice to be totally random, someone rolling 5 dice should have a set of 7776 combinations to choose from (simple statistics: 6 sides exponentiated by the number of cubes being used. In this case, 6 to the 5th power); four dice, 1296 (6^4); 3 dice 216 (6^3); 2 dice 6*6 or 36.
That’s not what happens. Instead, someone programmed in 50,000 numbers with some combination of 6s, 5s, 4s, 3s, 2s, and 1s and either one number is repeated 2 extra times or 2 numbers are each repeated 1 extra time…skewing the results. It’s also feasible that the first 49,998 numbers are not even representations of all 6 sides of the cube. In other words, the system could have more 3’s in it than would be found in 8333 dice (or more 1’s or more…) Does it? I don’t know.
Either way, the system is NOT statistically random.
And, since the set of numbers (that are already slightly skewed and may be more skewed than we realize just from the math) does not reset until numbers are used up, that means what happened a roll ago affects what happens now and what happens now affects the next roll…because you only have what’s leftover, until the series of 50,000 numbers gets reset. This means that only the first rolls in the refreshed series have the same chance to be truly random as the last “new” roll of the reset series…but as mentioned above, the series is skewed at least by 2 numbers, if not more… again, because 50,000 does not divide by 6 evenly, and the remainder reveals that there are 2 extra numbers.. and again, that assumes that the first 8333*6 (49998) uses exactly the same number of 6s, 5s, 4s, 3s, 2s, and 1s.. and, again, I do not know that this is true.
Thus, statistically, the intensity cubes are not truly random, cannot be truly random, and any claims that they are are mathematically bogus. I just showed you that.
The next question is, of course, “are they random enough?”
Well, since each player has no real chance of affecting which roll he is in a refreshed series; and since each player has no real chance of helping the computer decide where to begin in the series, we could argue that the cubes are “random enough.”
But, we cannot use that “random enough” to argue against players seeing ‘streaks’. They probably do see streaks. I cannot prove to you that I see ‘streaks’ but I assure you, I do. Sometimes my streaks are good, in which case I usually comment on that. Sometimes my streaks are bad, in which case I frequently comment on that. Sometimes (and this seems more rare) there are no discernable streaks in a game, in which case I enjoy the game the most because it seems, then, that neither player had the odds stacked in favor of.
So, what have we learned today? The intensity cubes are not, and cannot be, statistically random. They could be considered “random enough,” but not so random as to avoid the streaks people complain about. Since streaks can and will occur, dice complaints are to be expected and tolerated, especially if the system cannot or will not be addressed so that the statistical odds are pure for each and every roll for each and every player.