Im trying to get a random value to select a random row out of *a* 
database.  Not just mysql.
array_rand would do me just fine, but Im reading in the manual ->

"Don't forget to call *srand()* 
<> to seed the random 
number generator. "

Im not too certain what it means to seed the generator, but is it 
absolutely neccessary??
The results Im looking for, doesn't have to be of any high precision.

Also I read on the srand man page that srand should only be called once.
Does that mean one per page load or once every so often??

Thanks for any insight you provide.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to