There was at some time the Origin of Life and it is unkown how or why life occurred.
Subsequently Evolution began.
Biological evolution is generally defined as descent with modification, occurring by genetic inheritance and all of life shares a common ancestor that led to the diversity of life we witness today.
Some of the mechanisms of evolution are descent, mutation, migration, genetic drift and natural selection.
It is argued that all mutations are random for fitness, except perhaps CRISPRs systems.
Natural selection is not random.
Therefor it is irrevelant, if in fact, all mutations are random for fitness because natural selection will select the "fittest" mutations.
If we do not know how life began, how can we know where DNA, etc originated?
How do we know what caused genes?
Occam's (or Ockham's) razor is a principle attributed to the 14th century logician and Franciscan friar William of Ockham.
To paraphrase, Occam's Razor for scientists is that when you have two competing theories that make the same predictions the simpler one is better.
I submit that when one views the complexity and diversity of all life today and in the past the simpler most probable explanation is that evolution is planned, and not an accident.