# randChiSquare {#randchisquare}

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

## Syntax {#syntax}

`randChiSquare(df, count)`

## Arguments {#arguments}

**df** is a positive integer indicating the degree of freedom of a chi-squared distribution.

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

## Details {#details}

Return a vector of random values with chi-squared distribution.

## Examples {#examples}

```
randChiSquare(2.31, 2);
// output: [2.78303, 2.868523]
```

