# Producing random numbers with Student’s distribution: randstudent

### 8.3.7 Producing random numbers with Student’s distribution: randstudent

The randstudent command finds random numbers chosen according to Student’s distribution (see Section 8.4.8).

- randstudent takes one argument:
  n, an integer (the degrees of freedom).
- randstudent(n) returns a number chosen randomly according to Student’s distribution with n degrees of freedom.

#### Example.

Input:

randstudent(5)

Output (for example):

0.268225314184