Answers for "how to get a random number between two numbers in c++"

C++
0

how to get a random number between two numbers in c++

int randNum = rand()%(max-min + 1) + min;
Posted by: Guest on January-29-2021
0

how to get a random number between two numbers in c++

#inlcude <time.h>

int randNum = rand()%(max-min + 1) + min;
Posted by: Guest on April-07-2021

Code answers related to "how to get a random number between two numbers in c++"

Browse Popular Code Answers by Language