hello,
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:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main ()
{
int seed = (int)time(NULL);
srand(seed);
rand();
int my_number = 1+(int) (10.0*rand() / (RAND_MAX+1.0));
could you tell me what is wrong??? thanks so much!!!