Fix RAND() for posgre