randChiSquare

Syntax

randChiSquare(df, count)

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

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

Examples

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