SELECT * FROM ds_exam WHERE id >= (SELECT floor(RAND() * (SELECT MAX(id) FROM ds_exam))) ORDER BY id LIMIT 10