{
int xx, yy, n, m;
char zz1 = 65;
char arr[6][6];
for (xx = 0; xx < 6; xx++)
{
for (yy = 0; yy < 6; yy++)
{
n=rand()%6;
m=rand()%6;
arr[n][m] = zz1+xx+yy;
printf("%3c",arr[n][m]);
}
printf("\n");
}
printf("\n");
}
hi all i am new to C programming and i wish to create a 2D arrays with random characters by using ASCII codes.... but after a few tries i am not getting the output i want, the characters are created but it was not random at all >.< The output are shown below :
ABCDEF
BCDEFG
CDEFGH
DEFGHI
EFGHIJ
FGHIJK
please help me i need your advice~