Each individual (diploid organism) possesses two alleles for any particular characteristic. These two alleles segregate when gametes are formed, and one allele goes into each gamete
Random X inactivation requires an X-linked gene called Xist (X-inactivation specific transcript) that produces large RNA molecules that spread out and cover the chromosome to be inactivated