Azzera filtri
Azzera filtri

Generate repeatable random integers within a fixed range

1 visualizzazione (ultimi 30 giorni)
I want to generate 4 random integers from 4 to 11. The integers are repeatable

Risposte (1)

Chunru
Chunru il 1 Dic 2021
a = randi([4 11], 4, 1)
a = 4×1
10 4 10 8

Categorie

Scopri di più su Random Number Generation in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by