RANDBERNOULLI(p)
p: probability of success
If p < 0 or p > 1 RANDBERNOULLI returns #NUM!
RAND, RANDBETWEEN.