Effacer les filtres
Effacer les filtres

Random number, Random integer

4 vues (au cours des 30 derniers jours)
dhiman banerjee
dhiman banerjee le 5 Nov 2019
How To Generate two Non Repeating Random integers from 2 to 6?

Réponse acceptée

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

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by