This question already has an answer here:
- Randomize a List<T> 18 answers
- Randomly rearrange array items c# [duplicate] 1 answer
I want to randomly shuffle a 2D array in C#, but don't know how to. The elements should remain the same, but their positions should change randomly.
UPDATE: I don't think the suggested link solves my problem as it's about shuffling an one-dimensional list, and not a 2D one.
Aucun commentaire:
Enregistrer un commentaire