First for every ship in your fleet it has it's own unique ship number and individual health.
for ship in range(ExploreIG.Bships):
Bshipnum = ExploreIG.Bshipnum
ExploreIG.Bshipnum += 1
What I need is a system where the enemy will have a random range of attack like 50-100 for example and say the enemy will
end up dealing 70 damage. I need that distributed to a random amount of ships. So split up the 70 to a random amount of ships.
so in a fleet of 100 ships it might affect 10 ships and deal 5 damage to one of them, 7 damage to another, etc. (Dividing the damage among the ships [NOT EVENLY, BUT RANDOMLY])
So basically to sum up what I need is something that get's random keys from dictionaries and sets the values of those keys subtracted by a certain amount.
Please any help would be greatly appreciated.
Also I feel like I might have sounded pretty confusion so if you need to me to clear up any confusion please do
say so. Thanks in advance!