public static long random_int(Environment env, TraceInfo trace, long min, long max) {
        if (max < min) {
            env.exception(trace, BaseError.class, "Minimum value must be less than or equal to the maximum value");
        }

        return nextLong((max - min) + 1) + min;
    }
https://www.php.net/manual/en/ref.csprng.php
exts/jphp-zend-ext/src/main/java/org/develnext/jphp/zend/ext/crypto/csprng/CSPRNGFunctions.java