Check out example codes for "SQLite order random". It will help you in understanding the concepts better.

Code Example 1

SELECT FIELD_NAME FROM TABLE_NAME ORDER BY random() LIMIT 1
/* NOTE if this doesnt work try RAND() */

Learn ReactJs, React Native from akashmittal.com