Saturday, October 16, 2010

Generate rand7 from rand5

Initially i though this problem is easy.But it is little difficult.

How to generate rand7() from the given rand5() menthod?

rand7 will generate random numbers between 1..7
rand5 will generate random numbers between 1..5

No comments:

Post a Comment