Dear all,
i want to randomize the numbers of a char array, like:
if a have a number 1234. With the function itoa i will have an array like this:
a[0] = 1;
a[1] = 2;
a[2] = 3;
a[3] = 4;
This work fine. Now i want to generate ALL new integers which are made of these values:
1234, 1243, 1324, 1342, 1423, 1432
2134, 2143, 2314, 2341, 2413, 2431
3124, 3142, 3214, 3241, 3412, 3421
4123, 3132, 4213, 4231, 4312, 4321
Do you have an idea how to do this?
Regards