To generate a random character between two given characters you could do the following:
char genRandChar(char char1, char char2)
{
char retVal;
int val1= (int) char1; //cast char1 to its integer ASCII value
int val2= (int) char2; //cast char2 to its integer ASCII value
//assuming val1