Sample Functionc(), which contains the outcomessize=, which contains the number of simulationsreplace=, which specifies whether replacement occursprob=c(), which contains the likelihood of each outcomethe number of successes in $n$ independent success/failure trials
Two Parameters:
Equation:
$P(X = x) = \binom{n}{x}\space p^x \space (1-p)^{n-x}$ for $x \in \{0,1,2, …, n\}$
$X$~ Binomial$(n,p)$
dbinom Function