i have this in my code, this is all i have .

int nSpace;
nSpace = 21 + rand() % 20;
cout << nSpace << endl;
return 0;

nothing else is that all i need to have or do i still need the time thing when i do that it comes out to do like 22 and i did it like 30 times and it still comes out to be 22 .