Why are my C++ numbers not random?
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int randomNumber = rand() % 100;
for (randomNumber = 0; randomNumber < 20; randomNumber++)
{
cout << randomNumber << endl;
}
return 0;
}
//Why are my 20 numbers not random?