From e0a0a7f4d1f0add8c973acb0c7fba7d2efd884dc Mon Sep 17 00:00:00 2001 From: fdai7731 Date: Thu, 8 Feb 2024 02:25:52 +0100 Subject: [PATCH] function initialisiereZufallsgenerator --- src/main/c/Mathe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/c/Mathe.c b/src/main/c/Mathe.c index 468ec88..0c0da1d 100644 --- a/src/main/c/Mathe.c +++ b/src/main/c/Mathe.c @@ -47,7 +47,10 @@ void zeigeRundenEnde(int punkte); //16 void zeigeAuswahl(const char* text); - +//17 +void initialisiereZufallsgenerator() { + srand(time(NULL)); +}