Effacer les filtres
Effacer les filtres

Generate repeatable random integers within a fixed range

1 vue (au cours des 30 derniers jours)
nabilah shuhaimi
nabilah shuhaimi le 1 Déc 2021
Réponse apportée : Chunru le 1 Déc 2021
I want to generate 4 random integers from 4 to 11. The integers are repeatable

Réponses (1)

Chunru
Chunru le 1 Déc 2021
a = randi([4 11], 4, 1)
a = 4×1
10 4 10 8

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by