inmplement random generator test
pass random generator test