[PHP] srand, array_rand

2002-04-19 Thread Gerard Samuel
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()* http://www.php.net/manual/en/function.srand.php to seed the random number generator. Im not too

Re: [PHP] srand, array_rand

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Gerard Samuel wrote: 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()* http://www.php.net/manual/en/function.srand.php to seed