int getBit(int prob) { final split = (_range * prob) >> 8; final bit = _bitUpdate(split); if (_range <= 0x7e) { _shift(); } return bit; }