Ive had that happen many times, infact, usually in a brood theres only several males or evenzero. Im not an expert in genetics but something has to do with past generationg or something . My broos usually consist of about 30 fry and around 3-5 males and thats it, sometimes less. Its just how things are i guess.
Males look like females until they reach sexual maturity. They can look like fully grown females and one day you'll look and find the gonopodium(sp)...
All of my platys looked like females when I purchased them, even though they were fully grown. The males didn't sex out until about three months later. Be patient
Once the males have matured, you might want to take them out of the tank, the get a male or two from the pet store to prevent inbreeding.
Perhaps it is the fishes way of creating balance. It only takes one male to impregnate many females hence not as many males are needed.
Yes, the pH can affect the number of females and males. I can't rememebr which way it goes though.
Out of my 6 surviving 4 month old guppy fry, I thought they were all girls till a few weeks ago when I discovered 4 of them were boys and now I realise that 5 are. The "girl" remaining is very much a girl. Gravid spot and all