@Override
    public double variance() {
        return lambda;
    }
@Test
    public void testVariance() {
        System.out.println("variance");
        PoissonDistribution instance = new PoissonDistribution(3.5);
        instance.rand();
        assertEquals(3.5, instance.variance(), 1E-7);
    }