def __flip_biased_coin(self, bias):
        if bias == 0:
            return False
        elif bias == 1:
            return True
        else:
            return self._get_next_random() < bias
Flip a biased coin and return True if it comes up head.
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/log_processing.py/LogLineSampler.__flip_biased_coin