CRISIL interview question

simple conditional probability question how do you generate t distributed random variable