vendredi 13 octobre 2017

Can you shuffle the elements in an array? [duplicate]

This question already has an answer here:

So I've created an array and filled it with numbers. Is there a way to shuffle the elements of the array so that they're in a random order?

for (int q = 0; q < totalTiles; q++)
        {
            randomNumberArray[q] = number.ToString();
            number++;
        }




Aucun commentaire:

Enregistrer un commentaire