How can I generate random number between 1 and 10, and at the same time I want to exclude number 3 & 6?
38 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohd Helmi Mansor
am 21 Mär. 2019
Kommentiert: Guillaume
am 21 Mär. 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 Kommentare
Guillaume
am 21 Mär. 2019
Why not generate a number between 1 and 10 and if it's 3 or 6 retry? Seems simple enough.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!