They treat a plant with an acid that makes the female plant turn into a hermaphrodite, so it can pollinate itself. Being a female it can only pollinate using the X chromosone, as females sex chromosones are always xx and they use one. Combine that with the egg that is always an x you will 100 percent of the time get an xx seed, making a female