There has been some discussion on the quality of the Random Number Generator (RNG) in Civ3 around the forum. I'm not sure if there's been a dedicated thread, but here goes.
People often comment that 'impossible' events occur in their games, like a spearman beating a tank or a long streak of hits going to the same direction. I'm not addressing the historical accuracy of such events here, but simply the mathematical probabilities of them taking place considering the combat rules in the game.
Instead of theorizing the whole thing, I'll create a few series of truly random numbers at www.random.org to see how things should work.
I'll create three samples of 100 numbers for a 2-1 odds situation (roughly corresponding to archer attacking and unfortified 1-defense unit on a grassland tile) and another three samples for a 10-1 odds situation (roughly corresponding to a modern armor attacking a fortified spearman on a grassland tile).
The results:
2-1 odds:
First round: 59-41 distribution, longest streaks 7 and 4*
2nd round: 69-31, 12 and 5
3rd round: 58-42, 8 and 5
10-1 odds:
1st round: 94-6, 29 and 1
2nd round: 89-11, 20 and 3**
3rd round: 83-17, 26 and 2
* including a streak of nine hits out of which 8 went against the odds - corresponding to an army of 3 regular archers being a able to scratch an unfortified warrior on a grasslands only once - it happens, people!
** corresponding to a spearman taking out a regular moder armor without a scratch
There you have it. Not a big test sample, sure, but gives you a bit of an idea how truly random series of numbers *do* include weird streaks and sometimes a pretty unbalanced distribution.
Oh, and in case you were wondering: I did not pick 'suitable' results, but ran only six tests, deciding beforehand the mapping from the numbers to the probability space. I used numbers from 1 to 3 for the first test, using 3 as a hit against odds and 1 to 10 for the second, using 10 as a hit against the odds.
Heikki
People often comment that 'impossible' events occur in their games, like a spearman beating a tank or a long streak of hits going to the same direction. I'm not addressing the historical accuracy of such events here, but simply the mathematical probabilities of them taking place considering the combat rules in the game.
Instead of theorizing the whole thing, I'll create a few series of truly random numbers at www.random.org to see how things should work.
I'll create three samples of 100 numbers for a 2-1 odds situation (roughly corresponding to archer attacking and unfortified 1-defense unit on a grassland tile) and another three samples for a 10-1 odds situation (roughly corresponding to a modern armor attacking a fortified spearman on a grassland tile).
The results:
2-1 odds:
First round: 59-41 distribution, longest streaks 7 and 4*
2nd round: 69-31, 12 and 5
3rd round: 58-42, 8 and 5
10-1 odds:
1st round: 94-6, 29 and 1
2nd round: 89-11, 20 and 3**
3rd round: 83-17, 26 and 2
* including a streak of nine hits out of which 8 went against the odds - corresponding to an army of 3 regular archers being a able to scratch an unfortified warrior on a grasslands only once - it happens, people!
** corresponding to a spearman taking out a regular moder armor without a scratch
There you have it. Not a big test sample, sure, but gives you a bit of an idea how truly random series of numbers *do* include weird streaks and sometimes a pretty unbalanced distribution.
Oh, and in case you were wondering: I did not pick 'suitable' results, but ran only six tests, deciding beforehand the mapping from the numbers to the probability space. I used numbers from 1 to 3 for the first test, using 3 as a hit against odds and 1 to 10 for the second, using 10 as a hit against the odds.
Heikki