random_int()
function random_int(int $min, int $max): int
Get a cryptographically secure, uniformly selected integer.
Parameters:
$min(int)$max(int)
Returns: int
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how random_int is implemented in the compiler, see the internals page.