Generate repeatable random integers within a fixed range
显示 更早的评论
I want to generate 4 random integers from 4 to 11. The integers are repeatable
回答(1 个)
a = randi([4 11], 4, 1)
类别
在 帮助中心 和 File Exchange 中查找有关 Random Number Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!