Hi all,
I need to get a random number from the following:
#define RAND(min,max) ((min)+(int)((double)(max-min+1)*rand()/(RAND_MAX+1.0)))
but when I print it out it just prints the value of min.
printf("%d", RAND(10000000,99999999));
please help!
thanks in advance.