mysql-formula fix (rand)