The rand function combined with the limit argument is the best way to write a mysql query that returns a sample set of random rows from a table :
| mysql> SELECT * FROM tbl_name ORDER BY RAND(); |
This is described in the mysql manual and is ok on most mysql servers as long as they're version 3.23 and superior.