Browse Source

function generiereZufallszahl

remotes/origin/Yasin
fdai7731 11 months ago
parent
commit
6490824fba
  1. 7
      src/main/c/Mathe.c

7
src/main/c/Mathe.c

@ -54,7 +54,12 @@ int generiereZufallszahl(int min, int max) {
//19
char generiereZufallsOperator() {
char operatoren[] = {'+', '-', '*', '/'};
int index = rand() % 4;
return operatoren[index];
}

Loading…
Cancel
Save