change the random generator to improve resolved ratio