If you want to select random records in PostgreSQL, you may use the following PostgreSQL query to do that.