I have to write a c++ program and have a problem only with the following part
I don't know math as good as c++, also I'm not allowed to use c++11. I've written the following simple code, but I doubt if it's correct?for that purpose, you will need two random integral numbers from uniform distribution on the set: 1,2,3,4,5,6,7,8,9 (those two numbers have to be generated with equal probability)
Code:srand(time(0)); int first_number = rand() % 10; int second_number = rand() % 10;