The Hardy-Weinberg law is used to calculate allele and genotype frequencies ____.
A) in small populations B) when mating is random C) in migrating populations D) when some alleles confer an evolutionary advantage over other alleles E) the population descends from a single ancestor