Multiple instances of randi in Stateflow generate same sequence of numbers
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello
I have multiple instances of randi function call in my chart and the problem is that randi produces exaclty same sequence of numbers everywhere
How to avoid this?
0 comentarios
Respuestas (1)
Sahithi Kanumarlapudi
el 29 de Oct. de 2019
'rng’ function can be used to control the random number generation.
Call this function before calling ‘randi’.
For more information in ‘rng’ refer to the following links
0 comentarios
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!