Mutations, hormonal influences in the uterus and such. When it comes to gender chromosomes, you either have XX (female) or XY (male). Or you could get XYY (super male) or XXX (super female) or XXY (can't remember that one... biology class was a long time ago). But IIRC, gender is determined by the no. of X chromosomes rather than the presence of Y's.