Use the user-specified masterseed to generate a vector of randomly sampled seeds that is reproducible by calling the same masterseed at a future time.

get_seeds(masterseed = NULL, nseed = 1000)

Arguments

masterseed

An integer ranging from 1 to .Machine$integer.max that sets an overall seed for the simulation to ensure reproducibility of the results. Defaults to no seed.

nseed

A positive integer that specifies the number of subjects to simulate. Defaults to 1000.

Value

A vector of numeric integers of length nseed

Examples

get_seeds(masterseed = 513, nseed = 10)