Mating is rarely random. Many organisms choose a mate for specific reasons - body size, coloration, antler size, tail feather length, etc. Changes in allelic frequencies due to this non-randomness of mating is called
gene flow.
genetic drift.
natural selection.
Hardy-Weinberg equilibrium.