@Override
    public String doGenerate(final List<String> params, final String rule, final MockRequest mockRequest) {
        String[] range = params.get(0).split("-");
        double min = Double.parseDouble(range[0]);
        double max = Double.parseDouble(range[1]);
        String format = null;
        if (params.size() == 2) {
            format = Objects.equals(params.get(1), "") ? null : params.get(1);
        }
        return MockUtil.randomDouble(min, max, format).toString();
    }
Random double value generator in the specified range.
shenyu-plugin/shenyu-plugin-mock/src/main/java/org/apache/shenyu/plugin/mock/generator/RandomDoubleGenerator.java