View Single Post
  #7  
Old 11-28-2010, 01:25 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 392,468
Hall of Famer is on a distinguished road
Default RE: Hall of Famer's gender ratio system

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. ^^
Reply With Quote