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

2 visualizaciones (últimos 30 días)
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 comentario
Bjorn Gustavsson
Bjorn Gustavsson el 26 de Ag. de 2021
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by