WordPress at a glance
function is not described

ParagonIE_Sodium_Compat::randombytes_uniform() public WP 1.0

Generate an integer between 0 and $range (non-inclusive).

{} It's a method of the class: ParagonIE_Sodium_Compat{}

No Hooks.

Return

Int. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Compat::randombytes_uniform( $range );
$range(int) (required)
-

Code of ParagonIE_Sodium_Compat::randombytes_uniform() WP 5.7.1

<?php
public static function randombytes_uniform($range)
{
    /* Type checks: */
    if (!is_int($range)) {
        if (is_numeric($range)) {
            $range = (int) $range;
        } else {
            throw new TypeError(
                'Argument 1 must be an integer, ' . gettype($range) . ' given.'
            );
        }
    }
    if (self::use_fallback('randombytes_uniform')) {
        return (int) call_user_func('\\Sodium\\randombytes_uniform', $range);
    }
    return random_int(0, $range - 1);
}