AndrewRigg / Crossword

Crossword Generator made by Steven Court
0 stars 0 forks source link

Wordsearch: Distribute random letters realistically #44

Closed AndrewRigg closed 7 years ago

AndrewRigg commented 7 years ago

It's too obvious where words are due to distribution of uncommon letters around them. This is a quick fix to make the random filler string include a realistic distribution of letters.

AndrewRigg commented 7 years ago

Used the scrabble tiles distribution to create the new string with a letter for each tile. The random number generated was given the length of the string as the upper bound.