powered by
This function was deprecated in purrr 1.0.0 because it's not related to the core purpose of purrr.
rbernoulli(n, p = 0.5)
A logical vector
Number of samples
Probability of getting TRUE
TRUE
rbernoulli(10) rbernoulli(100, 0.1)
Run the code above in your browser using DataLab