Quote:
Originally Posted by pokemontrainergigi
Quick question, to get an all female or all male you use 0 and 100 right? 0 for all male and 100 for all female?
Also couldn't you change $tempgender = rand(0, 100); to $tempgender = rand(1, 100); to erase the 50-51 problem? =3 (not sure just started PHP X3)
|
Since this is a female gender ratio script, I'd say 100 = all female and 0 = all male.
Well yeah, you can technically change that to as simple as 0 to 9. The problem is that most people are used to the idea of having a range of ratio/percentage between 0 to 100, but sure you can do that. ^^