Как сделать что бы в цикле выпадали каждый раз новые значения? C++
#include "iostream"
#include "cstdlib"
#include "ctime"
using namespace std;
int main()
{
setlocale(0,"");
srand(time(0));
int v = 0;
int a = rand() %10;
int b = rand() %10;
int n;
while (v < 5)
{
cout << "Сколько будет " << a << " * " << b << " ? " << endl;
int c = a * b;
cin >> n;
if (c == n){
cout << "Верно, ответ = " << c << endl;
v += 1;
cout << v << endl;
}
else{
cout << "Не верно, ответ = " << c << endl;
v -= 1;
cout << v << endl;
}
}
system("pause");
return 0;
}