Question 1117421
<font face="Times New Roman" size="+2">
One question per post, see posting instructions.


b. Implementation of selection using random numbers.


Step 1, presuming a campus with 70,000 students would have a system of student numbers:  Determine the range of the student numbers, that is, determine the lowest student number of all students currently enrolled and determine the highest student number of all students currently enrolled.


Step 2, create a random number generator that will generate a list of unique numbers in the range determined in step 1.


Step 3, each time a random number is generated, perform two checks:  First, check to ensure that the current number has not been used before.  Second, check that the number generated corresponds to a student actually enrolled.  If either test fails, discard the current number and generate another.  If both tests pass, place the student corresponding to that number in the list of students to be surveyed.


Step 4, repeat steps 2 and 3 until the list of students to be surveyed consists of the desired sample size.  In the given problem, that would be 500 names.


John
*[tex \LARGE e^{i\pi}\ +\ 1\ =\ 0]
My calculator said it, I believe it, that settles it
<img src="http://c0rk.blogs.com/gr0undzer0/darwin-fish.jpg">
*[tex \Large \ \
*[tex \LARGE \ \ \ \ \ \ \ \ \ \  

</font>