Randn gives or does not give same numbers dependent on license or version?

1 次查看(过去 30 天)
Hi everyone,
I have posted it in a comment and as a new question since I am not sure what is the policy here:
I inherited some data and I can only see the result files. One number here depends on randn. However it is different across participants ( I am sure that matlab was restarted for every participant). When I run the code on my local machine, I get the same numbers for different participants as described above.
The code on my inherited data was ran on a Linux system where license was obtained from a server. Does the configuration of random number depends on whether you are on a standalone licese or obtain a license from a server? Or does it depend on your matlab version or which operating system you are on ( I am now on Windows and data used to be acquired on Linux). I would be happy for every help!
Thanks Laurie
  1 个评论
Bjorn Gustavsson
Bjorn Gustavsson 2021-8-26
You might find exactly how the random-number generation have evolved over time in the documentation: random-number-seed, random-number-seed_5 and links from there, if you are testing on exactly the same matlab-versions you should have the same sequence by default, but both the default generator and the seed for the sequences have changed over time - as far as I've understood this.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by