Lol I've needed to generate permutations enough times in the past that I have pre-written code for it.
I didn't think you wrote it now. But at some point it must have taken a few minutes.
Isn't this the next piece one writes in a new language after "hello world"?