How big is the table you're selecting from? Can
you afford to do a <b>select count(*) from table</b>
first? If so, then you can just use php's rand() or
mt_rand() to give you a random number between
1 and the count, and use this in a limit 1 offset n
clause.