added getting words

This commit is contained in:
Hazel Noack
2025-06-30 12:15:58 +02:00
parent 9d6700fa9a
commit 3f2f19943a
5 changed files with 104376 additions and 1 deletions

104338
internal/words/dictionary.go Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
package words
import (
"math/rand/v2"
)
func GetRandomWord() string {
// https://stackoverflow.com/a/22876612/16804841
return Words[rand.IntN(len(Words))]
}