Borrar filtros
Borrar filtros

Generate repeatable random integers within a fixed range

1 visualización (últimos 30 días)
nabilah shuhaimi
nabilah shuhaimi el 1 de Dic. de 2021
Respondida: Chunru el 1 de Dic. de 2021
I want to generate 4 random integers from 4 to 11. The integers are repeatable

Respuestas (1)

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

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by