Random Combination
Generates a random combination.
randcomb(a, m)
a |
numeric vector of some length |
m |
integer with |
Generates one random combination of the elements a
of length
m
.
vector of combined elements of a
This behavior is different from Matlab/Octave, but does better correspond with the behavior of the perms() function.
randcomb(seq(2, 10, by=2), m = 3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.