Think of it this way.
As regards the sacrifice of Jesus Christ, how did this work?
Did God run the numbers (in eternity past), get the right result, and then green light the Salvation Project? And the myriad of prophetic elements were all by chance, God only recorded what happened? And the only reason He allowed the Salvation Project to move forward is because He looked forward in time and saw that Christ did not fail?
Or did God Himself by sheer force of will, set forth a predetermined premeditated Salvation Project, where all the people involved and all the elements involved and all of the factors involved are doing exactly what he wants them to do? No dice rolling no coin flips no nothing.
No possibility that the Salvation Project would fail, no possibility that Christ would fail, and no possibility that any of the chosen/elect would ever fail to achieve final glorification?
The Bible is unequivocal in stating the latter is true.
God was not sweating it out in eternity past, (or now same thing) running numbers on His cosmic computer, and much to His relief (that's the sweating it out part) found a working scenario dependent only upon these future players who have their own free will, and whose decisions are the only decisions that really matter!