From 1098b0f8c02ede7ff4c9c5fba6a2022a6468aeac Mon Sep 17 00:00:00 2001 From: Simon Wiesend Date: Fri, 31 Oct 2025 08:18:19 +0100 Subject: [PATCH] init random number generator --- Start_Windows/game.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Start_Windows/game.c b/Start_Windows/game.c index 29d6995..fdd03ca 100644 --- a/Start_Windows/game.c +++ b/Start_Windows/game.c @@ -13,6 +13,9 @@ // Creates the word salad by placing words randomly and filling empty spaces int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount) { + // set seed for random number generator + srand(time(NULL)); + int r, c; //Gesamtes Feld auf 0 setzen