diff --git a/src/main/c/Mathe.c b/src/main/c/Mathe.c index c095d30..8cf4ff3 100644 --- a/src/main/c/Mathe.c +++ b/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]; +}