in reply to Re^2: all permutations of given lenght
in thread all permutations of given lenght

I am trying to generate an exhaustive list of SMILES codes, including their repetitions.
permutations are reorderings, i.e. samples without replacement. You seem to want all possible samples with replacement, i.e. variations_with_repetition.