Combinatorica`
Combinatorica`
RandomKSubset
RandomKSubset[l,k]
gives a random subset of set with exactly elements.
Details and Options
- To use RandomKSubset, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
RandomKSubset[l,k]
gives a random subset of set with exactly elements.