Factor out sample using rndGen from distributions
Added ChiSquaredDistribution