Producing random numbers with the χ2 distribution: randchisquare

### 8.3.8 Producing random numbers with the χ2 distribution: randchisquare

The randchisquare command finds random numbers chosen according to the χ2 distribution (see Section 8.4.9).

- randchisquare takes one argument:
  n, an integer (the degrees of freedom).
- randchisquare(n) returns a number chosen randomly according to the χ2 distribution with n degrees of freedom.

#### Example

Input:

randchisquare(5)

Output (for example):

4.53970828547