$(WIKI_D Chi-squared).
auto rv = chiSquared(3); static assert(isRandomVariable!(typeof(rv))); import mir.random.engine; auto x = rv(rne);
import mir.random.engine; Random* gen = threadLocalPtr!Random; auto rv = ChiSquaredVariable!double(3); auto x = rv(gen);
See Implementation
$(WIKI_D Chi-squared).