Two ways:
1. In prophase I of meiosis the homologous chromosomes synapse and crossing over occurs. This switches sections of two of the sister chromatids so the outer two chromatids have the same mix of alleles as the parents and the inner two chromatids have new combinations of alleles.
2. Meiosis puts only one of each kind of chromosome in the gametes, selecting one of each homologous pair at random. Then when each gamete joins with the gamete from the other parent, there are practically infinite combinations of the alleles possible.
If the substances preform the same in a variety of test, the they are the same. This is because they should always be tested in multiple categorys to see if they are the same or at least alike.