Multiple instances of randi in Stateflow generate same sequence of numbers
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Sahithi Kanumarlapudi
le 29 Oct 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 commentaires
Voir également
Catégories
En savoir plus sur Complex Logic dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!