> Can anyone tell me why, when I run this > $number = rand (1,12); > The only number that ever appears is 5? > Not really a random number...
You need to seed the random number generator first. http://www.php.net/srand HTH Jon -- 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]