randperm not working correctly on Matlab Web App
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
Hello everyone,
I have a problem with the randperm function. In the MATLAB App designer it always outputs a random number, but in the Web App the numbers are always the same. Is that the expected behavior? May I be missing something?
댓글 수: 3
  Cris LaPierre
    
      
 2021년 3월 12일
				No, but if you are using it, it will cause the same random numbers to be generated each time.
채택된 답변
  Steven Lord
    
      
 2021년 3월 13일
        I believe that each instance of the Web App is or is equivalent to a new session of MATLAB. In that case this documentation page applies. Follow the instructions it gives to generate random numbers that are different each time.
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 On-Premises Installation에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


