make foo() return a value in 1e5 sample