필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
Laurie König
Laurie König 2021년 8월 26일
댓글: Bjorn Gustavsson 2021년 8월 26일
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