This does print ALL the permutations of a set size, so you should not go above about 6.

The source.