All UNIQUE permentations : I'm finding lots of algorithms to get every permutation of a set of numbers. What I can't find is one that gives a UNIQUE list.

For example, the digits **123** will produce:

    123
    132
    213
    231
    312
    321

But the digits **113** should only produce (skipping the duplicates):

    113
    131
    311


If it helps, I'll be using 8 digits in an array.

Thanks