up
previous
next
RandomSubsetIndices
indices for random subset
Syntax
RandomSubsetIndices(N: INT, K: INT): LIST
Description
The function returns a random subset of
1..N
of cardinality
K
. See also
RandomSubset
.
NOTE: the resulting list is sorted.
Example
/**/ RandomSubsetIndices(10, 5); [1, 3, 4, 6, 8]
See Also
random
subsets
RandomSubset
RandomTuple
RandomTupleIndices