Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Laurie König
Laurie König le 26 Août 2021
Commenté : Bjorn Gustavsson le 26 Août 2021
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 commentaire
Bjorn Gustavsson
Bjorn Gustavsson le 26 Août 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by