14 Replies Latest reply on Aug 26, 2007 4:13 AM by Adam Cameron

    Permutation Number

    cybersabah Level 1
      How do i write a CF script can do searching for the permutation number:

      Example search for 4 digit number like: 1234

      Result:
      1234
      1243
      1324
      1342
      1423
      1432
      2134
      2143
      2314
      2341
      2413
      2431
      3124
      3142
      3214
      3241
      3412
      3421
      4123
      4132
      4213
      4231
      4312
      4321

      Anyone can help?