@Override
    public double mean() {
        return mean;
    }
@Test
    public void testMean() {
        System.out.println("mean");
        BetaDistribution instance = new BetaDistribution(2, 5);
        instance.rand();
        assertEquals(0.2857143, instance.mean(), 1E-7);
    }