Fix #1382 PostgreSQL rand() function needs to be random()
Merge pull request #1435 from Sama34/fix-1382

Fix #1382 PostgreSQL rand() function needs to be random()