note 60931 deleted from function.rand by felipe
| From: | felipe@php.net | Date: | Sun, 30 Dec 2007 18:44:35 +0000 |
| Subject: | note 60931 deleted from function.rand by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134437@lists.php.net to get a copy of this message | ||
Note Submitter: a dot tietje at flynet dot de
----
@ mozzer:
The only difference ist that your code does not allow codes < 100000. Try
$num = sprintf ('%06d', rand(0, 999999));