you can use this kind of trick
$max_record = count the total rows you have in your database;
$max_list = 10; // the max number of random records to be returned.
$begin = rand(0,max_record - $max_list);
then do a
$sql = "SELECT field1,field2 from table WHERE CLAUSE limit $begin,$maxlist";
This may not actually output random records, but it will seek random position on the database and get 10 (depends on the value of the variable) records onwards.. 🙂
Jun