randperm not working correctly on Matlab Web App
Mostrar comentarios más antiguos
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 comentarios
Cris LaPierre
el 12 de Mzo. de 2021
Do you set the rng seed before calling randperm?
Marcos
el 12 de Mzo. de 2021
Cris LaPierre
el 12 de Mzo. de 2021
No, but if you are using it, it will cause the same random numbers to be generated each time.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Profile and Improve Performance en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!