Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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: 190
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?

Elnaz



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.