changing 100 to 30 in random generator