Re: Random number generator
| From: | WEISD | Date: | Thu, 06 Nov 2008 17:26:07 +0000 |
| Subject: | Re: Random number generator | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283010@lists.php.net to get a copy of this message | ||
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....