The question was to generate a random number from 10 to 99, inclusive. I know enough to write the code below to generate 1 to 99. But is there any way to do just 10 to 99. I tried to look it up, but there was nothing helpful.
#include <iostream>
#include <random>
int main()
{
// create a random engine, seeding it with a true random number
std::default_random_engine eng(std::random_device {}());
// create a uniform integer distribution, from 10 to 99 inclusive
std::uniform_int_distribution<int> dis(10, 99);
// generate a random number
std::cout << dis(eng) << '\n';
}