Ever actually study The Bible?
I've been told many times, by my renegade friends;
'I can't believe in a god that kills people'
That discussion gets a bit deep....deep as one wants, really;
As for the flood -
Mankind was living past 900 years of age and fully corrupting itself. Finally melting down to total corruption - mankind would never have made it to today - at that rate. He would need to "push reset" - giving them lower life spans and remove a lot of the damage they had done, as well as a lot of the advantages they had - so they could not ramp up to such massive wickedness and self-destruction so fast.
Even so - He gave them a 120 year message for repentance and if they had accepted it - then no flood.
==========
As for Sodom and Gomorrah
Notice in Jude 7 that it is a signal to all mankind not to follow that path where as we see in Genesis the entire city except for Lot - was corrupt. Having a couple of cities (relatively small by comparison to today's mega cities) serve as a warning/example for generations to come was a price that was paid.
Still if they had listened to Lot's teaching about his God - they could have been spared. In fact Abraham bargained with God so that if only ten people were not corrupt out of the entire city it would be spared as Nineveh was spared in Jonah's day.=====================
God's plan was to allow himself to die for all the sins of all mankind in all of time - but to do that He could not allow Satan to turn the entire world to evil and self-destruct before there even would be the Messiah - nor could He just yank everybody's free will away and turn them into compliant robots.
So that means the "choices have consequences" system where bad choices result in a corrupt and self-destructive society - would be allowed "to a point".
Of late I've been studying the correlation between David and Goliath and Jesus' time on earth.
Never really knew there was one.
David was the lone one.
Somewhat of an intercessor.....standing in place of his people
Much like Jesus, our intercessor
Standing in place of us.
I could jam this forum with my findings, but won't
Just gotta say, it's really worth the study
I won't bore anyone with my findings, but, studying, if one really wants to know, is eye opening and fascinating.