Random number, Random integer

3 visualizaciones (últimos 30 días)
dhiman banerjee
dhiman banerjee el 5 de Nov. de 2019
Respondida: Daniel M el 5 de Nov. de 2019
How To Generate two Non Repeating Random integers from 2 to 6?

Respuesta aceptada

Daniel M
Daniel M el 5 de Nov. de 2019
x = 2:6;
y = x(randperm(length(x),2));

Más respuestas (0)

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