note 102063 deleted from function.rand by danbrown
| From: | danbrown@php.net | Date: | Tue, 25 Jan 2011 20:37:03 +0000 |
| Subject: | note 102063 deleted from function.rand by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176305@lists.php.net to get a copy of this message | ||
Note Submitter: frank
----
Jesses function is much faster with this:
mysql_query("SELECT * FROM [TABLE] WHERE 1 ORDER BY RAND() LIMIT 1");