So I made a function that creates a random number between the desired numbers. It works out all fine but when you call the function for a second time, the recieve the same number again and again. This is the function here:
So what am I doing wrong?Code:int random(int LOW, int HIGH, int VALUE) { time_t seconds; time(&seconds); VALUE = rand() % (HIGH - LOW + 1) + LOW; return (VALUE); }