postgresql select random row code example Example: postgres random select select * from app_product order by random() limit 10;