private double computeRange(Shape shape) {
        // Create a random string that does not exceed or go under the range trait.
        double i = 8;

        if (shape.hasTrait(RangeTrait.ID)) {
            RangeTrait trait = shape.expectTrait(RangeTrait.class);
            if (trait.getMin().isPresent()) {
                i = Math.max(i, trait.getMin().get().doubleValue());
            }
            if (trait.getMax().isPresent()) {
                i = Math.min(i, trait.getMax().get().doubleValue());
            }
        }

        return i;
    }
Generates fake data from a modeled shape for static JMESPath analysis.
smithy-waiters/src/main/java/software/amazon/smithy/waiters/ModelRuntimeTypeGenerator.java