Reassortment
There are several ways this happens. The term is  used when two similar viruses infecting the same cell exchange genetic material. In particular, reassortment occurs among influenza viruses. Their genomes have eight segments of RNA. These segments act like mini-chromosomes: each time a flu virus is assembled, it needs one copy of each segment.