def getBinomial(n, p):
    for i in xrange(n):
        if random.random() < p:
            return 1
    return 0
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/mert-scripts/PRO.py/getBinomial/original