Check out example codes for "getting a random letter in c++". It will help you in understanding the concepts better.

Code Example 1

char cch = 'a' + rand()%26;

Code Example 2

char c;
    int r;

    srand (time(NULL));    // initialize the random number generator
    for (i=0; i<num; i++)
    {    r = rand() % 26;   // generate a random number
          c = 'a' + r;            // Convert to a character from a-z
          cout << c;

Learn ReactJs, React Native from