public double next(Random r) {
            double d = r.nextDouble() * (max - min) + min;
            try {
                in.setFieldValue(new Double(d));
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            return d;
        }