jeudi 4 octobre 2018

JS, Randomly select every item from a 2d array

Array is 40 by 40 so [0 - 39][0 - 39].

is there a way that I can go through the array and select every item without selecting an item twice but do it randomly, so no a loop like for(i = 0; i < 40; i ++). sorry if my explanation is bad




Aucun commentaire:

Enregistrer un commentaire