This question already has an answer here:
- Random shuffling of an array 19 answers
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