random generator updated