(p)
return rand_random() <= p
Returns True with the *p* probability. If *p* is 1, the
    function will always return True. If *p* is 0, the function will
    return always False.

    Example:
       >>> Util.randomFlipCoin(1.0)
       True

    :param p: probability, between 0.0 and 1.0
    :rtype: True or False
Returns True with the *p* probability. If *p* is 1, the
    function will always return True. If *p* is 0, the function will
    return always False.
Returns True with the * p * probability . If * p * is 1 the function will always return True . If * p * is 0 the function will return always False .
def randomFlipCoin(p):
    """Returns True with the *p* probability. If *p* is 1, the
    function will always return True. If *p* is 0, the function will
    return always False.

    Example:
       >>> Util.randomFlipCoin(1.0)
       True

    :param p: probability, between 0.0 and 1.0
    :rtype: True or False

    """
    if p == 1.0:
        return True
    if p == 0.0:
        return False

    return rand_random() <= p
def randomFlipCoin ( p ) : if p == 1.0 : return True if p == 0.0 : return False return rand_random ( ) <= p