For a simple analogy, in working out his plans for this world God is more like a piano player than a pianola player.
Anyone can play a piano, and many do, but God plays his own tune on his piano, suited entirely to the times, and designed to bring about his purposes on earth.
The Bible teaches us that God knows his own end purposes, and intervenes in order to bring this about.
The Bible teaches that God is not playing a script predetermined for every note. He is not like a pianola player! He is more like a talented jazz musician, improvising on the piano, but knowing exactly where he or she is going.