I've heard that theory before... But that didn't work for me - 2 boys, 3.5 years apart.

I think it's either random or a mixture of the man's sperm and the environment in the woman's cervix/uterus?