how to randoml generate char in cpp code example Example: c++ generate random char char cch = 'a' + rand()%26;