Meiosis
Although the gametes have only one set of chromosomes, that set is a shuffled mixture of genetic material from both parents. Every single egg or sperm may have a different selection of alleles from the parental chromosomes.