Filter löschen
Filter löschen

Generate repeatable random integers within a fixed range

1 Ansicht (letzte 30 Tage)
nabilah shuhaimi
nabilah shuhaimi am 1 Dez. 2021
Beantwortet: Chunru am 1 Dez. 2021
I want to generate 4 random integers from 4 to 11. The integers are repeatable

Antworten (1)

Chunru
Chunru am 1 Dez. 2021
a = randi([4 11], 4, 1)
a = 4×1
10 4 10 8

Kategorien

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by