how to get a random number in c from 1 ot 20 code example
Example 1: c rand range
rand() % (max_number + 1 - minimum_number) + minimum_number
Example 2: how to genrate a random number in C
srand(time(NULL));
int r = rand();
rand() % (max_number + 1 - minimum_number) + minimum_number
srand(time(NULL));
int r = rand();