1 Commits
Author SHA1 Message Date
wiesendsi102436 9b6699b543 seed random number 2025-11-07 08:02:30 +01:00
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -13,6 +13,8 @@
// Creates the word salad by placing words randomly and filling empty spaces // 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, char words[][MAX_WORD_LEN], unsigned int wordCount) int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, char words[][MAX_WORD_LEN], unsigned int wordCount)
{ {
srand(time(NULL));
int row, col, placedWords = 0; int row, col, placedWords = 0;
// Gesamtes Feld auf 0 setzen // Gesamtes Feld auf 0 setzen
+2
View File
@@ -13,6 +13,8 @@
// Creates the word salad by placing words randomly and filling empty spaces // 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, char words[][MAX_WORD_LEN], unsigned int wordCount) int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, char words[][MAX_WORD_LEN], unsigned int wordCount)
{ {
srand(time(NULL));
int row, col, placedWords = 0; int row, col, placedWords = 0;
// Gesamtes Feld auf 0 setzen // Gesamtes Feld auf 0 setzen