OK I need to create an even random number between 54 and 212 inclusive. The only catch is that it has to be done in a single statement. I have a class to generate random number within a range, but like I said, I want to do it in a single statement. I came up with this, but it's not working correctly. Any ideas?
int main()
{
srand( time(NULL));
int i;
i = (rand() % 106) * 2;
cout << i;
return 0;
}