I want a random selection of rows in PostgreSQL, I tried this:
select * from table where random() < 0.01;
But some other recommend this:
If you want just one row, you can use a calculated offset derived from count.
offset
count
select * from table_name limit 1 offset floor(random() * (select count(*) from table_name));