in reply to permutation algorithm

You're looking for combinations, not permutations, and Knuth recently wrote a rather complete paper on the subject (about halfway down the page).

--
The hell with paco, vote for Erudil!
:wq