Function

rand

Synopsis

rand(mixed ...): int

Area
Runtime\PS\Crypto\Random\randareas

Description

rand returns a uniformly selected integer between $min and $max inclusive, or between 0 and 2147483647 when called without arguments; it reads the CSPRNG and not a seeded generator and there is no srand to pair it with.

Usage

$value = rand($arguments);
$fn = rand(...);

See also