# randBinomial {#randbinomial}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`randBinomial(trials, p, count)`

## Arguments {#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 {#details}

Return a vector of random values with binomial distribution.

## Examples {#examples}

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

