You are here: Re: mt_rand « PHP Programming Language « IT news, forums, messages
Re: mt_rand

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация