Skip to contents

Alias of rbinom() for a single trial (size = 1).

Usage

rbern(prob, n = length(prob))

Arguments

prob

Vector of probabilities.

n

Numbers of sample, defaults to the length of prob.