how to get a random number between two numbers in c++ code example
Example 1: how to get a random number between two numbers in c++
int randNum = rand()%(max-min + 1) + min;
Example 2: how to get a random number between two numbers in c++
#inlcude <time.h>
int randNum = rand()%(max-min + 1) + min;