Google research:
Mutations in these genes can produce newor altered traits, resulting in heritable differences (genetic variation) between organisms. ... Evolution occurs when these heritable differences become more common or rare in a population, either non-randomly through natural selection or randomly through genetic drift
For mutations to affect an organism's descendants, they must: 1) occur in cells that produce the next generation, and 2) affect the hereditary material. Ultimately, the interplay between inherited mutations and environmental pressures generates diversity among species.