1 2 3 4 5 6 7 8 9 | for (i = 0; i < ea; i++) for (j = 0; j < 6; j++) { choicenum[i][j] = rand() % 44 + 1; for (k = 0; k < j; k++) if (choicenum[i][j] == choicenum[i][k]) { j--; break; } } | cs |
1 2 3 4 5 6 7 8 | for (i = 0; i < ea; i++) for (j = 0; j < 5; j++) for (k = j + 1; k < 6; k++) if (choicenum[i][j] > choicenum[i][k]) { tmp = choicenum[i][j]; choicenum[i][j] = choicenum[i][k]; choicenum[i][k] = tmp; } | cs |