RANPERK Function

The RANPERK function returns a random permutation of $k$ elements from a finite set of $n$ elements, $k\leq n$.