note 105048 added to function.mt-rand
| From: | randtester at nomail dot com | Date: | Mon, 25 Jul 2011 10:05:55 +0000 |
| Subject: | note 105048 added to function.mt-rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181820@lists.php.net to get a copy of this message | ||
To alex at khimic:
I ran you example on Debian (the latest stable version as of today) and both rand() and mt_rand()
produced random noise (that looked like what a TV shows when no TV channel is being received).
The bottom line is, rand() is not broken on all platforms and in all environments. You should test
it.
Thanks for the test. It's really interesting and helpful.
----
Server IP: 69.147.83.197
Probable Submitter: 62.24.72.218
----
Manual Page -- http://www.php.net/manual/en/function.mt-rand.php
Edit -- https://master.php.net/note/edit/105048
Del: integrated -- https://master.php.net/note/delete/105048/integrated
Del: useless -- https://master.php.net/note/delete/105048/useless
Del: bad code -- https://master.php.net/note/delete/105048/bad+code
Del: spam -- https://master.php.net/note/delete/105048/spam
Del: non-english -- https://master.php.net/note/delete/105048/non-english
Del: in docs -- https://master.php.net/note/delete/105048/in+docs
Del: other reasons-- https://master.php.net/note/delete/105048
Reject -- https://master.php.net/note/reject/105048
Search -- https://master.php.net/manage/user-notes.php