sample

open override fun sample(random: Random): Double(source)

Draws a single random value from this Student's t-distribution.

Generates an independent standard normal sample and a chi-squared sample, then returns their ratio scaled by the degrees of freedom. This is the definition-based sampling method.

Return

a random value drawn from this distribution.

Parameters

random

the source of randomness.