MATLAB Answers

How can I generate random number between 1 and 10, and at the same time I want to exclude number 3 & 6?

25 views (last 30 days)
Mohd Helmi Mansor
Mohd Helmi Mansor on 21 Mar 2019
Commented: Guillaume on 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 Comments

Mohd Helmi Mansor
Mohd Helmi Mansor on 21 Mar 2019
I want to have one single number from the randomization process (Between 1 & 10). But the number must not be 3 & 6. So it can be either 1,2,4,5,7,8,9 or 10.

Sign in to comment.

More Answers (0)

Sign in to answer this question.