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

1 Ansicht (letzte 30 Tage)
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?

Akzeptierte Antwort

John D'Errico
John D'Errico am 1 Apr. 2020
  4 Kommentare

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Random Number Generation finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by