➤ The rand() function generates a random integer. If you want a random integer between 10 and 100 (inclusive), use rand (10,100). Syntax:
rand();
or
rand(min,max);
For instance:
$x = rand(0,10);
echo $x;
// outputs :  random integer between 0 and 10 (inclusive)
by Levani Makhareishvili
2 years ago
PHP
Function
1
Pro tip: use ```triple backticks around text``` to write in code fences