God's thought processes are so far superior to ours that we can't judge whether or not they are logical. Isaiah 55:8,9 says "For my thoughts are not your thoughts, neither are your ways my ways, declares the Lord. For as the heavens are higher than the earth, so are my ways higher than your ways and my thoughts than your thoughts."
His invisible attributes, namely, his eternal power and divine nature, have been clearly perceived, ever since the creation of the world, in the things that have been made. So they are without excuse.
Romans 1:20 ESV
Romans 1:20 ESV