The thing is this code produces same values every time I run it. But the exact same code produces different values on my friend's PC. What might be the reason, or what did I do wrong?
#define SIZE 100
int main(void) {
srand(14012021);
for (int i = 0; i < SIZE; ++i) {
if (i && i % 10 == 0)
printf("\n");
printf("%d, ", (rand() % 2 ? 1 : -1) * (rand() % 1000));
}
}