Unlike natural selection, genetic drift does not depend on an allele's beneficial or harmful effects. Instead, drift changes allele frequencies purely by chance, as random subsets of individuals (and the gametes of those individuals) are sampled to produce the next generation.