Answer - There can be many factors such as mutations, natural selection, nonrandom mating, genetic drift, gene flow. But nonrandom mating can have long term effects.
Reason - Reason why it has a long term effect is because of the survival of that organisms and how it will adapt to its own environment with the introduction of nonrandom mating etc..