Once again, "B" is substituted for "A." After a person believes (received Him), then God gave that person the power to become physical children of God. How was that "power" bestowed? The person was spiritually born anew as a spiritual child of God. And that rebirth was done according to God's determinate will.I'm not God. He needs not to 'learn', He predestines according to His will/wants.
John 1:12-13 KJV
But as many as received him, to them gave he power to become the sons of God, even to them that believe on his name: [13] Which were born, not of blood, nor of the will of the flesh, nor of the will of man, but of God.
But that is not what is being discussed.
Wanting, preferring, desiring something to happen is not the same as causing something to happen.