$random_number = rand(10);
Assigns a computer-generated random number to the scalar variable $random_number.
Because the number 10 is inside the parenthesis:
rand(10)
the computer-generated number will be between 0 and 9.999999999999999.
If you’d used the number 100—rand(100)—it would be between 0 and 99.999999999999999.