This is called “random sampling without replacement” and is implemented e.g. by StatsBase.sample
.
See also Sampling from a list of integers without repetition and Sampling without replacement.
This is called “random sampling without replacement” and is implemented e.g. by StatsBase.sample
.
See also Sampling from a list of integers without repetition and Sampling without replacement.