Difference between Matlab and Octave in random seeding

Mark van Rossum mvanross at inf.ed.ac.uk
Fri Feb 15 03:35:44 CST 2008


Hi,

In octave (3.0.0)
rand ('state', 1); randn
will always produce the same number. I.e. the seed on rand affects randn as 
well.

In  Matlab seeding rand does not seed randn.




-- 
Mark van Rossum


More information about the Bug-octave mailing list