The natural selection operates in base of the difference between de reproductive successes of the individuals. The genes of the most successful individuals (the ones that reproduces more) appears more in the next generation. If an individual cannot survive it will not be able to reproduce. Because of that natural selection is NOT RANDOM and can act really quickly. (Charlat et al., 2007)
The DNA is shaped by the genetic drift, another evolutionary force that can make the allelic frequencies of a population vary between generations in a RANDOM way, simply because of chance at the moment of gametogenesis. (Masel, 2011)
Both