Re: [PHP] Random number generator

2008-11-05 Thread Gary M. Josack
WEISD wrote: Just starting out, thanks. So, I should have prefaced the question with, New to PHP... ""TG"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Here's how you generate a random number: http://us.php.net/manual/en/function.rand.php There are a number of things

Re: [PHP] Random number generator

2008-11-05 Thread Gary M. Josack
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. Is there an easy way to do this? Get the time and use the last digit converting 0 to 10. Stephen rand(1, 10); -- P