yes, well let me try and explain it. The seeds have no pre-done sexing (unless feminised in which case they use giberrelic acid). Weed chose sex based on natural conditions (indoor it means conditions you give it). That means - heat, light, water, nutes, parasites, transplanting, root bounding, salt and pH lvl... pretty much everything. If you give them PERFECT conditions by the time you switch to 12/12 you'll have a percentage of let's say 90% females, 10% males. If you stress them by not giving the right conditions that percentage drops to let's say 10% females and 90% males.
On the other hand, if you stress TOO much a plant from a feminised seed, you simply CAN'T get a male because that genetic information was practically deleted by the giberrelic acid, but instead you'll get useless hermaphrodites.
So basic rule would be - try and seed the plant in it's final pot (avoid transplanting) give it a steady humidity and heat lvl, enough light, proper light time (don't play too much changing from 24/24 to 18/6 to 14/10 and then back to 20/4), make a watering schedule and adapt it to the plant needs and you'll be surprised of the female/male ratio

Good luck