Simple random sampling (source code)

= Simple random sampling

A fixed-size simple random sample gives every subset of the required size the same selection <probability>. Taking the first $k$ labels from a uniformly random permutation of $N$ labels produces this design. Restricting a larger uniform permutation to the desired label set preserves uniformity; biased modulo mappings should not replace uniform selection.