note 26342 rejected from function.rand by betz
| From: | betz@php.net | Date: | Mon, 28 Oct 2002 10:07:25 +0000 |
| Subject: | note 26342 rejected from function.rand by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38630@lists.php.net to get a copy of this message | ||
I want to generate a Password with the lenght of 8. That does work, but the Password is everytime
the same! Who can tell me, why this source doesn't work?
$password = "";
for($i=0; $i<8; $i++)
{ $password.=chr(rand(97, 122)); }