prova questo

select * from tabella order by rand() limit 0,1

magari ti aiuta nell'estrarre un record casuale
(è questo che volevi fare, giusto)