in reply to permutations?

Sounds like you want a slight adaptation of this FAQ: How do I permute N elements of a list?.