Given a function F that generates random numbers between 1 and 5, how would I write a function G, using F, to generate random numbers between 1 and 7?
The probability of each number generated by G should be the same.
So far, I have tried the equation G=F + (5*(F/7))
, although I'm not sure that all of the probabilities are the same.