how random function works in postgresql code example Example: postgres random select select * from app_product order by random() limit 10;