Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Happy New Year!

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?

If not, do you know a opensource php version of the mersenne twister?


Re: mt_rand

Quoted text here. Click to load it

Probably not.

It shouldn't be difficult to adapt one of these:

philronan [@] blueyonder [dot] co [dot] uk

Site Timeline