randBinomial

Syntax

randBinomial(trials, p, count)

Arguments

trials is a positive integer.

p is a floating number between 0 and 1.

count is the number of random values to be generated.

Details

Return a vector of random values with binomial distribution.

Examples

randBinomial(2, 0.627, 2);
// output
[1, 1]