mercredi 6 mars 2019

how shuffle an array starts from index 1

hi i wanna to shuffle a list and index 0 is fixed but other index has been chaning and my list have data model class

sample =[Angelina Jolie.jpg, Ben Affleck.jpg, Bruce Willis.jpg, Michael Jackson.jpg, Miley Cyrus.jpg, Pharrell Williams.jpg, Rihanna.jpg, Ryan Gosling.jpg]

shuffled=[Angelina Jolie.jpg, , Michael Jackson.jpg,Rihanna.jpg, Ryan Gosling.jpg, Miley Cyrus.jpg, Pharrell Williams.jpg,Ben Affleck.jpg, Bruce Willis.jpg ]




Aucun commentaire:

Enregistrer un commentaire