|
Posted by Philip Ronan on 01/02/06 02:09
In article <dp912i$f7h$00$1@news.t-online.com>,
"Oliver Benning" <oliver@treibhaus.ping.de> wrote:
> is there a way to save the internal position of the mersenne twister
> (mt_rand) at the end of the php script (i.e. to session or database) and
> start it again using the last generated number?
Probably not.
> If not, do you know a opensource php version of the mersenne twister?
It shouldn't be difficult to adapt one of these:
<http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/eversions.html>
--
philronan [@] blueyonder [dot] co [dot] uk
Navigation:
[Reply to this message]
|