RandomKSubset

RandomKSubset[l,k]

gives a random subset of set l with exactly k elements.

Details

See Also

KSubsets  NextKSubset

Tutorials