Life on earth was predetermined based on the potentials that are inherit within the atoms of the periodic table. For example, if you react oxygen and hydrogen they will form water. This is not random or accidental but is inherent within their chemical properties, and is therefore predetermined even before they meet and react.
In our universe, hydrogen, helium and oxygen are the three most common atoms. The hydrogen molecule; H2, the water molecule; H2O and the carbon monoxide molecule; CO, are three most common molecule in the universe. In these three, we have what is needed for solar fusion and photosynthesis. Life formed from the bounty of the universe.
The Miller–Urey experiment, done in the 1950's, was a chemical experiment that simulated the conditions thought at the time to be present on the early Earth. They started with simples molecules like carbon monoxide, water, hydrogen and ammonia and reacted them with an electric spark. The electric spark was to simulate lightning generated by water in thunder storms. The result was they were able to make all the animo acids needed for life, plus extra ones life does no even need in the present. The chemical potential in these simple molecules, make this possible, and reproducible in the lab. It is predetermined. We need to figure out the right conditions to take advantage of the potentials.
The problem science has, is they have taken a wrong path. They depend too much on random because they fail to see the correct potentials in the atoms and molecules, especially water. They tend to believe in a god of random mythology, which is a god of lottery, dice and cards. Dice and card are manmade and are not natural.