Subj : how to generate a sequence? To : comp.programming From : Neo Date : Thu Sep 08 2005 06:37 pm Hi All, I have problem, I want to generate all possible (unique) combinations of the following sequence: 123456789 213456789 312456789 321456789 .. .. Symbols allowed : 1 - 9 Though, symbols can be anything like A B C D E F G H I, not necessarily numbers. NOTE: there will be !n (Factorial n) lines of output, 'coz there can be !n combinations of n symbols. Algo. required! Do U have a quick solution in mind??? Regards, Neo .