public static double nextDouble(final double startInclusive, final double endInclusive) {
        Validate.isTrue(endInclusive >= startInclusive,
            "Start value must be smaller or equal to end value.");
        Validate.isTrue(startInclusive >= 0, "Both range values must be non-negative.");

        if (startInclusive == endInclusive) {
            return startInclusive;
        }

        return startInclusive + (endInclusive - startInclusive) * getNativeInstance().nextDouble();
    }
Next double and provide double.

@param startInclusive the start inclusive
@param endInclusive   the end inclusive
@return the double
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/RandomUtils.java