Hvis mysql er v. >= 3.23.52 kan der være "issues" med rand() jvf. en user-comment på
http://www.mysql.com/doc/en/Mathematical_functions.html As of MySQL 3.23.52, MySQL changed the way
RAND() functions, such that you MUST supply a
SEED to get an actual random number. If you do
not, each new connection will return close to the
same number as the previous new connection. An
example to test this would be to run the follow
command multiple times in a row. mysql -u
username -p -e'select rand()' A basic way to seed
this would be to run RAND(NOW()).
Dvs:
SELECT id, citat FROM citat ORDER BY RAND(NOW()) LIMIT 0, 1
nok fungerer bedre, hvis det er en relativt ny version af mysql du bruger.