A number between 10 to 100 randomly

#include <iostream>
#include <ctime>
using namespace std;
int main ()
{
int i,j;
srand ( (unsigned)time( NULL ) );
//Display 1 random number
for ( i = 0;i < 1;i++)
{
j= rand() %100;
cout << j << endl;
}
system ("pause");
return 0;
}
No.
No to what
That's not what it does, obviously.
No it works but still getting numbers below 10 thats my problem
 
j = rand()%90 + 10;
Thanks for that ave working perfect now.
Topic archived. No new replies allowed.