All of the entries are stored in a MySQL database. I then shuffled the results in a random order (for anyone who knows SQL, the exact query was "SELECT * FROM contests ORDER BY RAND()"), and the person in the first row was selected as the winner of the prize that we were currently choosing for. No person was chosen twice, but that did happen, we would have chosen again.
__________________
"My motherboard's microchips are chomping at the... 'bit'. A little computer humor." --Krang, Welcome Back, Polarisoids
|