powered by
randperm(a, k)
n
a
length(a)
1:a
k
perms
randperm(1:6, 3) randperm(6, 6) randperm(11:20, 5) randperm(seq(2, 10, by=2))
Run the code above in your browser using DataLab