#This R script is to allow students to choose random samples #from the class data. N <- 20 #Put Number of Sample IDs Here and Execute This Line #Two Bags sort( sample( x = 1:N, size = 2, replace = TRUE ) ) #Four Bags sort( sample( x = 1:N, size = 4, replace = TRUE ) ) #Nine Bags sort( sample( x = 1:N, size = 9, replace = TRUE ) )