can using randsample return a value twice from a certain array? let's say i'm doing: Y=randsample(X,4) where X is an array length 10, of all kind of numbers, and i want Y to be an array of 4 random and different numbers out of Y. so can this function return the same value twice? if it does - how do i cancel it and make it give different random values? thanks
Aucun commentaire:
Enregistrer un commentaire