@Override
    public double mean() {
        return n * p;
    }
@Test
    public void testMean() {
        System.out.println("mean");
        BinomialDistribution instance = new BinomialDistribution(100, 0.3);
        instance.rand();
        assertEquals(30.0, instance.mean(), 1E-7);
    }