snodrift1
02-14-2011, 06:55 AM
I have the number 2334566 and need to know; How many times each number appears and then sort them accordingly ie...
Number = 2334566
Number and occurrences
2-1
3-2
4-1
5-1
6-2
Results
2453366
I am trying to do this in VB.Net and it is driving me nuts. The number 2334566 is a randomly generated number that will always be 7 characters long and no number will ever be larger than 6. Some other random numbers could be;
1123444
1234566
2223556
Thanks for the help.
Number = 2334566
Number and occurrences
2-1
3-2
4-1
5-1
6-2
Results
2453366
I am trying to do this in VB.Net and it is driving me nuts. The number 2334566 is a randomly generated number that will always be 7 characters long and no number will ever be larger than 6. Some other random numbers could be;
1123444
1234566
2223556
Thanks for the help.