MATLAB Programming/MATLAB Caveats
From Wikibooks, the open-content textbooks collection
- In MATlab 6.x (not sure exactly which builds this problem occurs in) the random number generator will generate the same sequence the first time you execute the command.