Samples without replacement from the distinct states of the selected categories, so the result never repeats a state.
Arguments
- n
Number of unique states to draw. A single positive whole number, at most the number of distinct states in the selected categories.
- categories
Categories passed to
learning_states(), defaulting to"all".- seed
Optional random seed. A single number makes the call reproducible and restores the session's random-number state afterwards;
NULL(the default) draws from the session's stream and advances it.