I have a random double 0 <= rand <= 1. Given two ints X and Y, I need to know rand% between the two. I may not be explaining this well, so here is an example.
num_low = 5;
num_high = 15;
double temp = .77321;
so with those given inputs, I need to find the number that is 77% of the way between 5 and 15.
Btw .. not homework or anything, just have no idea what the math equation is for this.
num_low = 5;
num_high = 15;
double temp = .77321;
so with those given inputs, I need to find the number that is 77% of the way between 5 and 15.
Btw .. not homework or anything, just have no idea what the math equation is for this.
