>>458463#include <iostream>
#include <random>
#include <chrono>
#include <algorithm> //std::swap
using namespace std;
int main(){
random_device rd; //true random number generator but might not exist on all systems
seed_seq seeds{ rd(), rd(), //partially fill mt's state with multiple calls of random data
static_cast<unsigned int>(chrono::high_resolution_clock::now().time_since_epoch().count()), //back up if rd() isn't random
};
mt19937 mt_generator(seeds);
auto rand_num_in_range = [&mt_generator] (int a, int b) { return uniform_int_distribution<int> {a,b} (mt_generator); };
auto num1 = rand_num_in_range(1,20);
auto num2 = rand_num_in_range(1,20);
if (num1<num2) std::swap(num1,num2);
int r = rand_num_in_range(1,3);
int correctAnswer, studentAnswer;