How do you rationalize God's cruelty in the old testament?

If you're a new testament Christian and don't even know what I'm talking about, read Numbers 31 as an example.
How do you rationalize God's cruelty in the old testament?
Post Opinion