About random number generators
조회 수: 2(최근 30일)
표시 이전 댓글
답변: ahmed abrous 2014년 2월 25일
I want to create a program on simulink which use a random number box but I have seen that its output is repeated at each step of the simulation. So how can I change the seed of this program to get the good result.
I use actually matlab 2010a, and I tried rng bgut not working.
Lucas García 2014년 2월 22일
As you have found out, using rng is the way to go with the current MATLAB version.
Although currently discouraged, you can use the former synthax for changing the seed with older MATLAB versions: http://www.mathworks.es/es/help/matlab/math/updating-your-random-number-generator-syntax.html
댓글 수: 1
댓글 수: 3
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!