powered by
CohortSizeRandom
CohortSizeRandom is the class for random cohort sizes drawn from a uniform distribution between min_size and max_size (inclusive).
min_size
max_size
CohortSizeRandom(min_size, max_size).DefaultCohortSizeRandom()
.DefaultCohortSizeRandom()
(integer) see slot definition.
integer
(integer) minimum cohort size.
(integer) maximum cohort size.
# Random cohort size between 1 and 5. my_size <- CohortSizeRandom(min_size = 1, max_size = 5)
Run the code above in your browser using DataLab