RandomKSubset

RandomKSubset[l,k]
gives a random subset of set l with exactly k elements.

DetailsDetails