Given the task definition and input, reply with output. You are given a sentence and your task is to generate another sentence that supports the given input.

During meiosis and gametogenesis, homologous chromosomes pair and exchange genetic material by recombination, leading to the production of sperm or eggs with chromosome haplotypes containing novel genetic variation.

Meiosis is part of the process of gametogenesis, which is the production of sperm and eggs.