Hi, I'm trying to generate the same random numbers(i.e. no srand() function needed) but I can't seem to figure out how to get it to work for the range I am in. I want it to be in the range of .5 to 1. Someone hinted that I divide by the constant RAND_MAX and do some other things, but that really seems to do nothing except produce 0. Any help will be nice. sorry for the noob question. And YES, I READ THE FAQ!
I tried this and it doesn't seem to work when I'd think that it would. It just gives me 0.
Code:((rand()%50) / 100) + .5