Borrar filtros
Borrar filtros

i want produce a random number between 2 and 10 for example...

1 visualización (últimos 30 días)
how can produce a random integer number that are not started with 1?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 19 de Oct. de 2013
2+rand*(10-2)

Más respuestas (1)

LY Cao
LY Cao el 19 de Oct. de 2013
randi(9)+1

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by