137k views
2 votes
Step 1 - Create txt files - and prng-service.txt Step 2 - Create folder cs361 and save images with names as , , etc…. Step 3 - Create prng.py

a) Sequential steps to establish a directory structure
b) Programming steps to generate random numbers
c) Steps to organize files for a project
d) Instructions to implement a pseudo-random number generator

User S Jagdeesh
by
8.1k points

1 Answer

4 votes

Final answer:

To select random samples of restaurants, one can use a random number generator on a calculator or computer. By generating numbers and using them to select specific instances, like quiz scores or class members, you can create a stratified and unbiased sample.

Step-by-step explanation:

In the context of selecting random samples of restaurants for a lab, you can use different methods to generate random numbers, which can then be used to ensure that your selection is unbiased and representative. The procedure might involve using a random number generator like the one found on a calculator or in a computer program.

For example, Lisa uses her calculator to generate numbers such as .94360, .99832, .14669, .51470, .40581, .73381, .04399. She interprets these numbers by reading two-digit groups, such as 94, 43, 36, from the decimal numbers which correspond to a sequence or list. These two-digit numbers are then mapped to potential samples—in this case, class members or in the lab's case, restaurants. It's important to note that each random number should only correspond to one sample to prevent bias in the selection.

Another instruction provided for creating a stratified sample involves numbering each row and using a calculator's random number generation function. For instance, you would number the rows from one to ten and then use the randInt function to generate random integers within that range. These integers would correspond to specific quiz scores in a column, forming your stratified sample.

User SnoringFrog
by
8.1k points