I have following problem:
There are n=20 characters in the sequence. For each position there is a predefined list of possible characters which can be 1 to m (where m usually is a single digit).
How can I enumerate all possible permutations efficiently? Or in essence is there some preexisting library (numpy?) that could do that before I try it myself?