lundi 14 décembre 2020

Get rendom items from javascript array

suppose I have an array

[1,5,9,3,5,3,6,7,33,45,664,655,566,325];

How can I get 5 random element from that array. but that 5 element's indexes must be different. I mean 5 individual array element.




Aucun commentaire:

Enregistrer un commentaire