note 87447 deleted from function.srand by thiago
| From: | thiago@php.net | Date: | Fri, 05 Dec 2008 12:42:32 +0000 |
| Subject: | note 87447 deleted from function.srand by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147677@lists.php.net to get a copy of this message | ||
Note Submitter: Tom
----
It seems that the seed value isn't the only influence.
This:
> srand(1);
> print rand();
yields different results when called several times. So you can use srand() to create deterministic
random numbers... :-(