@Override
    public double variance() {
        return 2 * nu;
    }
@Test
    public void testVariance() {
        System.out.println("variance");
        ChiSquareDistribution instance = new ChiSquareDistribution(20);
        instance.rand();
        assertEquals(40, instance.variance(), 1E-7);
    }