Tighten the range of `b2i`

`b2i` will always generate a number in the range 0,1