# rbernoulli

From purrr v0.2.2.2
by Lionel Henry

##### Generate random samples from a Bernoulli distribution

Generate random samples from a Bernoulli distribution

##### Usage

`rbernoulli(n, p = 0.5)`

##### Arguments

- n
Number of samples

- p
Probability of getting

`TRUE`

##### Value

A logical vector

##### Examples

```
# NOT RUN {
rbernoulli(10)
rbernoulli(100, 0.1)
# }
```

*Documentation reproduced from package purrr, version 0.2.2.2, License: GPL-3 | file LICENSE*

### Community examples

Looks like there are no examples yet.