How can I generate random number between 1 and 10, and at the same time I want to exclude number 3 & 6?
조회 수: 19 (최근 30일)
이전 댓글 표시
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
Guillaume
2019년 3월 21일
Why not generate a number between 1 and 10 and if it's 3 or 6 retry? Seems simple enough.
채택된 답변
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!