how to print random numbers in c++without a range code example Example: c++ how to generate a random number in a range min + ( std::rand() % ( max - min + 1 ) )