From my understanding of genetics and college biology, the male plants determine the sex of the seeds when they pollinate. So any external influences do not determine the sex. I think it is just the luck of the drawl.
However, i have been wrong before.