SQLite – ORDER BY RAND()

SELECT * FROM table ORDER BY RANDOM() LIMIT 1;

Leave a Comment