Ok. You need to understand mod a little bit better: here you go
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
main()
{
char k;
int i;
srand(time(NULL));
for(i = 1; i <= 10; i++)
{
k=(rand() % 14) + 33; //range is (47 - 33), add 33 to get that range.
printf("%c", k);
}
return 0;
}
The mod will take the number n, and place it between the range of 0-13, then we add 33 to put it between 33 and 47
Hope this helps.
What you did was take the number and place it between the range of 0 and 32, then add 15 placing it in the range of 15 and 47 (SI - '/')