Draw random variables student t distribution

I want to draw standardized values with a t-distribution, so I want to generate iid numbers from the student-t distribution with mean zero and variance 1.
I can use the Matlab function 'trnd(nu).' Does this generate random numbers with mean zero and variance 1?

Asked:

on 16 Jun 2016

Answered:

on 16 Jun 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!