Re: Random numbers in a cronned script?
| From: | lallous | Date: | Fri, 13 Sep 2002 08:50:31 +0000 |
| Subject: | Re: Random numbers in a cronned script? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116237@lists.php.net to get a copy of this message | ||
Yes, you're right about that point since the seed in most cases is computed
from system time => increasing probability of having same number @ the same
request time...
you can change the seed with the time() too (not all days are the same).
hope to hear others' opinions too.
Elias
"Leif K-Brooks" <eurleif@buyer-brokerage.com> wrote in message
news:3D819139.5080308@buyer-brokerage.com...
> I'm wondering if random numbers in a cronned script would be anywhere
> near random (I know that rand() isn't true random, but I don't want
> every number to be the same...)? Since the number is seeded from
> time... and cron runs by time...
>