Generates a random sample of participant IDs.
random.sample(popsize, samsize)
study population size
sample size
Returns a vector of randomly generated participant IDs
random.sample(3000, 25)
#> [1] 246 259 370 429 629 650 844 899 1106 1249 1318 1338 1414 1567 1740
#> [16] 1789 1817 1923 2123 2131 2185 2593 2830 2840 2982
# Should return:
# [1] 37 94 134 186 212 408 485 697 722 781 998 1055
# [13] 1182 1224 1273 1335 1452 1552 1783 1817 2149 2188 2437 2850 2936