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