i want to make a random number between 1, and 10 that is different every time i use it. i want the integer to be called "my_number". here's what i have so far:
int main ()
int seed = (int)time(NULL);
int my_number = 1+(int) (10.0*rand() / (RAND_MAX+1.0));
could you tell me what is wrong??? thanks so much!!!