added a Bernoulli random primitive.