I want to generate a random number every time the program is run. I will output it to a file using ofstream. However, I have checked the file and the same number is returned. Does anyone know why my code below does not generate a random number within the bounds everything it is run? I think it static but not sure why.
int tempJ = rand() % 10000;