Re: Using rand() for 10 digit numbers????
| From: | Curt Zirzow | Date: | Fri, 05 Sep 2003 18:52:42 +0000 |
| Subject: | Re: Using rand() for 10 digit numbers???? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161818@lists.php.net to get a copy of this message | ||
* Thus wrote Scott Fletcher (scott@abcoa.com):
> How interesting. Yours work while mine doesn't. All I did was ..
>
> --snip--
> $randomNumber = rand(0,9999999999);
> echo $randomNumber;
> --snip--
>
> What PHP version do you use? I only have version 4.3.1 on the machine.
I believe its the OS he's using. to avoid this use mt_rand()
instead since this one is more efficient and system INdependent.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."