Dont get confused, there is a rand() for PHP and a rand() for mysql.
The PHP rand() requires that you seed it at least once before you use rand().
The MySQL rand() is ready-to-use, but only lives inside MySQL queries.
if you do
SELECT * FROM table ORDER BY RAND() LIMIT 1
mysql will select all the records in random order, and return only the first one it selected (so it will be random).
Just run the query and fetch the first row it returns. That's all.