How can i use randperm without involving some certain numbers?
Show older comments
For example i want to use randperm(5,3). But it should not include number 2. It can take any 3 values from 1 to 5, without including number 2.
Accepted Answer
More Answers (0)
Categories
Find more on Random Number Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!