Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: random generator seed

$
0
0
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

Viewing all articles
Browse latest Browse all 19628

Trending Articles