RE: [PHP] rand is not random for me :(
| From: | James Atkinson | Date: | Wed, 10 Jan 2001 22:26:08 +0000 |
| Subject: | RE: [PHP] rand is not random for me :( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33817@lists.php.net to get a copy of this message | ||
Did you seed your random number generator?
ie: srand ((double) microtime() * 1000000);
- James
> -----Original Message-----
> From: Brandon Orther [mailto:brandon@webintellects.com]
> Sent: January 10, 2000 2:24 PM
> To: PHP User Group
> Subject: [PHP] rand is not random for me :(
>
>
> When I use random rand(1, 10) I always get 2?
>
> Thank you,
>
> --------------------------------------------
> Brandon Orther
> WebIntellects Design/Development Manager
> brandon@webintellects.com
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net