powered by
a
perms(a)
n
n! x n
A matrix will be expanded as vector.
randperm
perms(6) perms(1:6) perms(c(1, exp(1), pi))
Run the code above in your browser using DataLab