##
Generate integer from 1 to 7 with equal probability
August 7, 2012

Given a function foo() that returns integers from 1 to 5 with equal probability, write a function that returns integers from 1 to 7 with equal probability using foo() only.