Re: Random number generator
| From: | WEISD | Date: | Thu, 06 Nov 2008 15:53:29 +0000 |
| Subject: | Re: Random number generator | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-282997@lists.php.net to get a copy of this message | ||
""Gary M. Josack"" <lists@byoteki.com> wrote in message news:4911EC29.8070309@byoteki.com...
Stephen wrote:Thanks for the help!! php's random number generator seems to have favorite numbers. rand(1, 10); produces 10 & 3, 90% of the time....rand(1, 10);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