How to select a random number from set 5:20:2000?
1 view (last 30 days)
Show older comments
Dayalram Dayalram
on 8 Jun 2019
Edited: KALYAN ACHARJYA
on 8 Jun 2019
How to select a random number from set 5:20:2000?
0 Comments
Accepted Answer
KALYAN ACHARJYA
on 8 Jun 2019
Edited: KALYAN ACHARJYA
on 8 Jun 2019
idx=5:20:2000;
rand_num=idx(randi(length(idx)));
0 Comments
More Answers (0)
See Also
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!