Some probability question 1) given a rand5() function which provide a random number between 1-5 at equal probability. Write a rand7() fuction to provide a random number between 1-7 with equal probability...
Sigiloso
The answer Abs(2*rand5()-3 ) does not generate uniformly distributed random numbers. It is wrong!