note 84121 deleted from function.rand by danbrown
| From: | danbrown@php.net | Date: | Wed, 05 Nov 2008 15:36:51 +0000 |
| Subject: | note 84121 deleted from function.rand by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146169@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous Coward
----
This one is better:
function random_letters ($numofletters=10) {
$v="";
for($i=0;$i<$numofletters;$i++) $v.=chr(rand(65,90));
return $v;
}