How can I best write a query that selects 10 rows randomly from a total of 600k?
Its very simple and single line query.
SELECT * FROM Table_Name ORDER BY RAND() LIMIT 0,10;