up previous next
RandomTupleIndices

indices for random tuples

Syntax
RandomTupleIndices(N: INT, K: INT): LIST

Description
The function returns a random tuple of 1..N of cardinality K . See also RandomTuple .

Example
/**/ RandomTupleIndices(32003, 10);
[4987, 13034, 10044, 7148, 11122, 1144, 21264, 5379, 2934, 7015]

See Also