note 108519 added to function.mt-rand
| From: | Ozzy | Date: | Thu, 03 May 2012 12:58:30 +0000 |
| Subject: | note 108519 added to function.mt-rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187455@lists.php.net to get a copy of this message | ||
this will work on both 32bit and 64bit systems:
<?php
$quick_rand = base_convert(mt_rand(0x1D39D3E06400000, min(0x41C21CB8E0FFFFFF, mt_getrandmax())), 10,
36);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 92.238.52.76
----
Manual Page -- http://www.php.net/manual/en/function.mt-rand.php
Edit -- https://master.php.net/note/edit/108519
Del: integrated -- https://master.php.net/note/delete/108519/integrated
Del: useless -- https://master.php.net/note/delete/108519/useless
Del: bad code -- https://master.php.net/note/delete/108519/bad+code
Del: spam -- https://master.php.net/note/delete/108519/spam
Del: non-english -- https://master.php.net/note/delete/108519/non-english
Del: in docs -- https://master.php.net/note/delete/108519/in+docs
Del: other reasons-- https://master.php.net/note/delete/108519
Reject -- https://master.php.net/note/reject/108519
Search -- https://master.php.net/manage/user-notes.php