lundi 18 mars 2019

Matlab: random integers from a range with no repetition

I want to get an array with randomized integer included in range with no repeat, I used :

randperm(15,3)

output is :

8, 10, 12

This function not use a range, I would like to random values only from 10 e.g.

Thank you !




Aucun commentaire:

Enregistrer un commentaire