The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: random generator seed
Replies: 4   Last Post: Jan 25, 2013 5:41 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Elnaz Sadeghian

Posts: 206
From: Tehran, Iran
Registered: 5/26/07
Re: random generator seed
Posted: Jan 25, 2013 5:11 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Ok, so rng('default') is not equivalent of setting the seed to zero; but the real question is does rng('default') serve the purpose?
If I use rnd('state',0), I'll get the message that this syntax is no longer recommended; use rng function instead. So, the question is that if I put rng('default') in my script, then in all of my MATLAB applications regardless of their version (not older than 2010 but may be of different versions and are running on different machines) can I be certain that all random numbers generated will be the same?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.