In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
SELECT
name
FROM
random AS r1
JOIN
(
SELECT
(RAND() * (SELECT
MAX(id)
FROM
random)) AS id) AS r2
WHERE
r1.id >= r2.id
ORDER BY
r1.id ASC LIMIT 3