I see that you got a lot of responses, but I didn't see anyone using what I use. I had problems using rand() because it wasn't quite random enough. The following code is as random as you can get (at least from what I've seen). mt_srand ((double) microtime() * 1000000); $myrandomnumber = mt_rand($min_number, $max_number); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]