verify random generator