Numbers & Letters Algorithm

Hi, just wondering but how would I create a algorithm like this:

1
2
3
4
5
6
7
8
9
10
11
12

     int i, j, k, nums[ 50 ] ;

		 for ( i = 1 ; i < 50 ; i++) nums[ i ] = i;

		 for (i = 1 ; i <50 ; i++)
         {
          j = ( rand() % 49 ) + 1;
	      k = nums[ i ] ; nums[ i ]= nums[ j ] ; nums[ j ] = k ;
	     }



Just anything that works a bit like this but also generates letters in that aswell. Thanks.
A description would be really helpful
Topic archived. No new replies allowed.