Example 1 — Draw a sample with random numbers
Show the steps and the answer
Take 512: it is between 001 and 800, so student 512 is chosen.
Every number from 001 to 800 matches exactly one student, so each student has the same chance of coming up.
Take 093: student 93 is chosen.
Leading zeros keep every label three digits long, so the generator's three-digit groups map onto the list.
Skip 874: no student has that number.
Numbers beyond 800 are not on the list, so you ignore them rather than bending them to fit a student.
Skip the second 512, then take 307.
A student can be in the sample only once, so repeats are thrown away.
Keep drawing until 50 different students are chosen, then survey exactly those students.
The chance process, not the surveyor, must decide every member of the sample.
Answer: So far students 512, 93 and 307 are chosen; continue, skipping numbers above 800 and repeats, until there are 50.
Takeaway: Number the whole population, let random numbers choose, and skip anything off the list or already chosen.