srand für bessere zufallszahlen

This commit is contained in:
Giorgi Kesidis 2025-10-27 20:39:19 +01:00
parent 6f1a59af0c
commit 00ddc2b389
4 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@
// 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)
{
srand(time(NULL));
// wipe field
int placedWords = 0;
for (int i = 0; i < searchFieldLen; i++)

Binary file not shown.

Binary file not shown.

Binary file not shown.