combinat[randcomb] - construct a random combination
|
Calling Sequence
|
|
randcomb(n, m)
|
|
Parameters
|
|
n
|
-
|
list or set of objects, or positive integer
|
m
|
-
|
non-negative integer
|
|
|
|
|
Description
|
|
•
|
If n is a list or set, then randcomb returns a random combination of m elements of n. If n is a positive integer, a random combination of m of the first n positive integers is returned.
|
•
|
The command with(combinat,randcomb) allows the use of the abbreviated form of this command.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?