""Gary M. Josack"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
Stephen wrote:
On a php web page I want to generate a random number between say 1 and 10 and then use that number to reference a particular file in
an include tag.

<?php include('GeneratedNumber.html'); ?>

Is there an easy way to do this?


Get the time and use the last digit converting 0 to 10.

Stephen


rand(1, 10);

Thanks for the help!!

php's random number generator seems to have favorite numbers.

rand(1, 10); produces 10 & 3, 90% of the time....

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to