How can I generate random number between 1 and 10, and at the same time I want to exclude number 3 & 6?
18 次查看(过去 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!