I'm using the following code to return a random row from a table. Using the field 'rand'.
SELECT *
FROM imgs
WHERE rand > RAND( )
ORDER BY rand ASC
LIMIT 1
The field 'rand' is generated by mysql at creation using something similar to:
INSERT INTO imgs SET rand = RAND ()
For some reason the results although changing each run are only rows with a very low 'rand' field. There is definitely a complete range with over 7,000 rows. Seams to work fine if i replace the 'WHERE rand > RAND( )' with 'WHERE rand > [a number between 0-1]'