How can I generate random number between 1 and 10, and at the same time I want to exclude number 3 & 6?
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohd Helmi Mansor
le 21 Mar 2019
Commenté : Guillaume
le 21 Mar 2019
How can I generate random number between 1 and 10, and at the same time I want to exclude number 3 & 6 using M-file?
3 commentaires
Guillaume
le 21 Mar 2019
Why not generate a number between 1 and 10 and if it's 3 or 6 retry? Seems simple enough.
Réponse acceptée
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!