Permutations

WMA link


Permutations[list]

gives all possible orderings of the items in list.

Permutations[list, n]

gives permutations up to length n.

Permutations[list, {n}]

gives permutations of length n.

Elements are differentiated by their position in list, not their value.

Normal
Range