def Bernoulli(name, p, succ=1, fail=0):
 return rv(name, BernoulliDistribution, p, succ, fail)

def Bernoulli ( name , p , succ = 1 , fail = 0 ) : return rv ( name , BernoulliDistribution , p , succ , fail )
create a finite random variable representing a bernoulli process .