Our logic is seriously flawed. We are evaluating God's justice and wisdom from the perspective of a single life span rather than from the perspective of eternity. Our conclusions are distorted because we are appraising a work in progress, still incomplete, still unfolding. We have, in effect, judged the fruit while it was still green, before it sweetened. Our life is a prologue.
Life has meaning and the universe is rational.
Surely, that's worth a thank you to the Creator. If the thoughts generated by your superior intelligence stand between you and faith, think again. Personally, if I could identify just two things for which to be thankful, I would choose first to be thankful for amnesty, that is forgiveness for all those accumulations of sin and error which could otherwise weigh us down and steal away our freedom of spirit and enthusiasm for life. Second, I would give thanks for the promise that one day you and I will see His face.