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