diff --git a/src/main/c/Mathe.c b/src/main/c/Mathe.c index 0c0da1d..9ac095a 100644 --- a/src/main/c/Mathe.c +++ b/src/main/c/Mathe.c @@ -53,6 +53,14 @@ void initialisiereZufallsgenerator() { } +//18 +int generiereZufallszahl(int min, int max) { + return min + (int)((double)rand() / (RAND_MAX + 1) * (max - min + 1)); +} + + + +