Evolution doesn’t concern itself with how life began and I think most scientists would be honest enough to say that science can’t say how it did so. There are hypotheses but none with enough evidence to give make them very robust.
Randomness in evolution is misunderstood. For example, let’s say we have 10 random mutations in a population, one of those random mutations makes it possible for those mutants to increase the likelihood of their offspring surviving by some degree. Rinse and repeat a couple of million times. Mutations may be random, but the conditions in which a mutation provides favor are not.
Except that in a clock, its functional parts are relatively inactive by themselves, among themselves before assembly, whereas in living things, the functional parts are largely at the molecular level, where the orders of interaction with one-another are not only astronomically high, but the interactions themselves are largely spontaneous (molecular interactions do not need physical guidance to the extent that clock parts do, when putting the clock together).