Re: Random number generator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




1. change the number to a string: $t = (string) time();
2. chop off the last char of the string: $char = substr($t, -1);
3. you're done...: include "footer$char.html";


Time wins.... certainly produces better results, at least for what I am doing, than rand...

Thanks all for your input...

Nice NG here....

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux