For given $K$, the function samples with replacement from a
uniform distribution on a set of pairs
$(1,2), (1,3), \ldots, (1,K), (2,3), \ldots, (2,K), \ldots, (K-1,K).$
Usage
rSamplePair(n, K)
Arguments
n
number of pairs to sample.
K
a numeric value which determines $K$ (see above).
Value
A two-component numeric vector for n$=2$ or a matrix with 2
columns with sampled pairs in rows for n$>2.$