srand für bessere zufallszahlen
This commit is contained in:
parent
6f1a59af0c
commit
00ddc2b389
@ -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.
Loading…
x
Reference in New Issue
Block a user