You need to use time() function as a seed in srand() and then use rand().
srand(time(NULL));
By the way you are not printing the rand() result, use this after the srand call:
for (int i= 0; i < 20; i++)
{
int randomNumber = rand() % 100;
cout << randomNumber << endl;
}