SELECT * FROM book_issue_latest ORDER BY RAND() LIMIT 5;
0.253s
SELECT bookid FROM book_issue_latest
WHERE bookid >= (SELECT floor( RAND() * ((SELECT MAX(bookid) FROM book_issue_latest)-(SELECT MIN(bookid) FROM book_issue_latest)) + (SELECT MIN(bookid) FROM book_issue_latest)))
LIMIT 5;
0.039s