Generating Permutations

I have written about algorithms that generate permutations.

There is this blog post about Heap’s algorithm.

There is also this post about another algorithm.

Lastly, if you need pseudorandom permutations, you can use Fisher-Yates shuffling.