Generate repeatable random integers within a fixed range
Show older comments
I want to generate 4 random integers from 4 to 11. The integers are repeatable
Answers (1)
a = randi([4 11], 4, 1)
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!