note 60931 deleted from function.rand by felipe
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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));