Generally they involve fertility
treatments in the form of insemination to increase the number of male or female sperm
or with ivf and testing the pregnancy
to see if it is male or female before finishing treatment. Overall naturally the chances are about 50% for each gender and that is really controlled by the sperm.