mt_rand()
function mt_rand(int $min, int $max): int
Generate a random value via the Mersenne Twister Random Number Generator.
Parameters:
$min(int)$max(int)
Returns: int
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how mt_rand is implemented in the compiler, see the internals page.