rand() to random() conversion for pgsql

fix for https://github.com/mybb/mybb/issues/1382