$random_number = rand(1,10);
The rand() command generates a random number from 1 to 10.
It is then assigned to the variable $random_number.
print "<p>Your Lucky Number from 1 to 10 is $random_number .</p>\n";
Prints "Your Lucky Number from 1 to 10 is 8."
Because it is a random number, the number on your screen will be different.
<< BACK
NEXT >>