[Top][All Lists]

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


From: Joseph Wakeling
Subject: rand('twister')
Date: Fri, 11 Dec 2009 16:18:39 +0100
User-agent: Thunderbird (X11/20090817)

Hello all,

A query about the random number generator in Octave.

In MATLAB there was until recently a problem with the default random
number generator:

... which could be worked around by calling the random number generator


The more recent MATLAB versions apparently use the Mersenne Twister by
default and have removed this option (you need to replace the 'twister'
option with 'state').

Anyway, Octave apparently still accepts the 'twister' option ... so does
it do what I think it does, and generate numbers from the MT algorithm?

I ask because nothing at all is mentioned about it in the current
manual, even as a backwards-compatibility or deprecated feature ... :-)

Thanks & best wishes,

    -- Joe

reply via email to

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