Browse Source

For-Schleife für Fragen Shuffle

remotes/origin/Pascal
Pascal Schneider 11 months ago
parent
commit
6f9f3a55d2
  1. 6
      src/timequiz.c

6
src/timequiz.c

@ -21,4 +21,10 @@ void timequiz() {
int correctAnswers[] = { 1 };
for (int i = 0; i < sizeof(questions) / sizeof(questions[0]); i++) {
int j = rand() % 4;
char* temp = answers[i][0];
answers[i][0] = answers[i][j];
answers[i][j] = temp;
}
}
Loading…
Cancel
Save