import random


def happens(prob):
    """ Trigger a random event to happen
    
    Arguments:
        prob {float} -- chances to return true
    
    Returns:
        [bool] -- if the random event happens
    """
    chance = random.uniform(0,1)
    return chance <= prob