Random access database. How to 'lucky dip' from a collection of items.
How can I create a random access database?
I've got Appery to 'invoke a service', accessing a restservice database (as per the tutorial). In my app, I'd like a button click to request a random item of data from this database collection, rather than always the first item, or the entire list.
If there's not a quick way, can I do it via a random number generator, and rename each item's _id value to correspond to numbers 1-1000, say?