edited-making value 0
이전 댓글 표시
In my previous posts the answer is correct,but every time i run i get different answer,randperm is used,but i dont want to values to e b echanged wen i run different times,please help
채택된 답변
추가 답변 (1개)
Andreas Goser
2012년 2월 2일
0 개 추천
So you want to have random number, but always the same set of random numbers? Check out RandStream.
댓글 수: 2
kash
2012년 2월 2일
Bjorn Gustavsson
2012년 2월 2일
Kash, you answer before checking RandStream. That way you happen to give a comment that make you appear "less intelligent than you'd want to". Check out the documentation of RandStream, then answer.
HTH
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!