To think that "knowing the end from the beginning" must mean "knowing every detail of the end from the beginning" is not logical.
To think that God never knew something is illogical, is itself illogical.
It was illogical? To tell Abraham who was a 99 years old, and Sarah who was almost 90, that they were going to have a child?
Abraham believed it.... by faith.
FAITH... bridges the gap between God and man.
Can God be trusted when He is not understood?
Faith says, 'yes' if one senses the character of God.
God will remain illogical and incomprehensible to those who only see God as some super human being.
Illogical to those who mentally keep positioning themselves into His position, and then trying to picture how God does things.
God's abilities are illogical to the finite mind, because they are incomprehensible to our comparatively speck of dust mentality.
Be humble. That is step one.
The real question to be asked...
Can God who is beyond our comprehension be trusted?
He wants to cause us in time through gaining knowledge to understand Him by grace.
He does not simply demand that we do.