Browse Source

function generiereZufallszahl

main^2
fdai7731 11 months ago
parent
commit
14af5f6e8e
  1. 7
      src/main/c/Mathe.c

7
src/main/c/Mathe.c

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

Loading…
Cancel
Save