This doesn't seem reasonable:
(With reinforcements on their way.)
Since city size is 7 the unhappy level is also 7 (at the default difficulty level). Tarentum's distance to Rome is 5. This gives us 7/2 (rounded down) * 7 + 5 = 26 rebel units.
Would it be sufficient to just spawn iDistance number of units? Or perhaps whatever is highest of iDistance and iUnhappyLevel. So Tarentum would have received 7 rebels in this test, because 7 (unhappy level) is greater than 5 (distance).
Your call.
The number of units calculation seems a bit excessive. Tarentum just got hit with 26 rebel units!Type - Domestic Rebellion
Sample Conditions - Disorder for whatever reason 12% for barbs and 7% for civilized
Civ Claimant - Civ Specific rebels (I will send you the current mod soon)
Number of Units - Revolt turns * Military Garrison strength + 1 strength (may be unbalanced but testing will see) OR iPopulation / 2 * iUnhappyLevel + iDistance possibly?
Type - Current owner's tech level
Termination - None
Misc - Revival would be for rebels, Always present, War weariness

Since city size is 7 the unhappy level is also 7 (at the default difficulty level). Tarentum's distance to Rome is 5. This gives us 7/2 (rounded down) * 7 + 5 = 26 rebel units.
Would it be sufficient to just spawn iDistance number of units? Or perhaps whatever is highest of iDistance and iUnhappyLevel. So Tarentum would have received 7 rebels in this test, because 7 (unhappy level) is greater than 5 (distance).
Your call.