random numbers in MATLAB, is a good generator?
peripeteia
03-23-2008, 12:01 PM
When you begin MATLAB and you generate a random number, you got a number, then you close matlab. then you begin MATLAB again and you generate ither random number, and AMAZINGLY you got the same number....is it a clue of bad random-number generator??.
Freddy Rojas
IADB
davekw7x
03-23-2008, 02:14 PM
...is it a clue...
I would get my Matlab clues from Matlab documentation or from the Mathworks help desk:
From http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/rand.html
"Because MATLAB software resets the rand state at startup, rand generates the same sequence of numbers in each session unless you change the value of the state input."
Regards,
Dave