# randExp {#randexp}

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

## Syntax {#syntax}

`randExp(mean, count)`

## Arguments {#arguments}

**mean** is the mean of an exponential distribution.

**count** is the number of random values to be generated.

## Details {#details}

Return a vector of random values with exponential distribution.

## Examples {#examples}

```
randExp(2.31, 2);
// output: [0.732791, 0.732791]
```

