random generator is working