How to select a random row in DbFlow?

141 Views Asked by At

How to get a random row from a table in DBFlow?

In SQLite I would simply write the query as:

select * from table_name ORDER BY RANDOM() LIMIT 1;

Whats the equivalent for it? I couldn't find anything and OrderBy accepts only column values. Thank you.

My question is about DBFlow ORM for Android, not for SQLite.

0

There are 0 best solutions below