help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re rand('state',0)


From: Paul Kienzle
Subject: Re: Re rand('state',0)
Date: Thu, 13 Oct 2005 22:21:32 -0400


On Oct 13, 2005, at 8:28 PM, Bill Denney wrote:
I know that the standard fortran rand (I don't know if this is the same as ranlib) is a simple linear congruent RNG, and it has known bad seeds. MT is (as far as I know) the state of the art RNG, and it has no known bad seeds.

I believe a state of all zeros in MT is bad. The initialization code for octave-forge/rand protects against this, which you can see by running:

        s = rand('state',0)


- Paul



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]