@Override
    public double mean() {
        return 1 / p;
    }
@Test
    public void testMean() {
        System.out.println("mean");
        ShiftedGeometricDistribution instance = new ShiftedGeometricDistribution(0.3);
        instance.rand();
        assertEquals(3.333333, instance.mean(), 1E-6);
    }