PostgreSQL random function.