the environment and ferts can help influence sex.

females like almost perfect growing temps, no stress, alittle more nitrogen compared to p and k,

males are about the opposite. you can get more males with more stress, p and k compared to n,