create a random number from 0 to count($array) and use that as the index

jack

-----Original Message-----
From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 3:08 PM
To: PHP (E-mail)
Subject: [PHP] randomly picking a variable from an array


How do you randomly picking a variable from an array with PHP?

Thanks,

Joseph




PS. Thanks to those who helped me with GD. If you go to my site, you'll see
the new counter I created at the top of the page.

http://www.collegesucks.com

















-- 
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]



-- 
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]

Reply via email to