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 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!