Why is this shuffle not uniformly random? (psuedocode)
for (int i = 0; i < N; i++) { int r = random number between 0 and (N-1); swap array[i] and array[r]; }
Aucun commentaire:
Enregistrer un commentaire