Returns a matrix containing all permutations of the integers 1:n (one permutation per row).
1:n
permutations(n)
n
Friedrich Leisch
permutations(3)