note 77550 added to function.mt-srand
| From: | Joe at osu1 dot php dot net | Date: | Mon, 03 Sep 2007 11:59:19 +0000 |
| Subject: | note 77550 added to function.mt-srand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130125@lists.php.net to get a copy of this message | ||
In some cases it is necessary to be able to create same sequence of pseudo-random numbers. E.g. to
run repeatable simulation run with different parameters. Since php 5.2.1 it is not possible even
using same seed in mt_srand function. For such cases use srand instead.
----
Server IP: 195.46.80.5
Probable Submitter: 213.160.182.192
----
Manual Page -- http://www.php.net/manual/en/function.mt-srand.php
Edit -- https://master.php.net/note/edit/77550
Del: integrated -- https://master.php.net/note/delete/77550/integrated
Del: useless -- https://master.php.net/note/delete/77550/useless
Del: bad code -- https://master.php.net/note/delete/77550/bad+code
Del: spam -- https://master.php.net/note/delete/77550/spam
Del: non-english -- https://master.php.net/note/delete/77550/non-english
Del: in docs -- https://master.php.net/note/delete/77550/in+docs
Del: other reasons-- https://master.php.net/note/delete/77550
Reject -- https://master.php.net/note/reject/77550
Search -- https://master.php.net/manage/user-notes.php