Reverse it, and it becomes clear.
The teacher picks 30 numbers out of 100. Then each student (independently) picks one number. If random, that is 0.3 ^ 30. Obviously, the students are not picking random.
If I had to pick for the teacher:
multiples of 10: 10,20,30,40,50,60,70,80,90
double digits: 11,22,33,44,55,66,77,88,99
Not sure where to go next.