How can I generate random natural numbers between min and max range?

2 次查看(过去 30 天)
I would like to to gererate 8 random natural numbers.
For example, if I set the range as (1, 100), then {1, 5,23, 26, 92, 12, 44, 76} would be generated.
How can I do this?

采纳的回答

John D'Errico
John D'Errico 2020-4-1
  4 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by