Change random generator