only return lowercase
This commit is contained in:
		| @@ -2,9 +2,10 @@ package words | ||||
|  | ||||
| import ( | ||||
| 	"math/rand/v2" | ||||
| 	"strings" | ||||
| ) | ||||
|  | ||||
| func GetRandomWord() string { | ||||
| 	// https://stackoverflow.com/a/22876612/16804841 | ||||
| 	return Words[rand.IntN(len(Words))] | ||||
| 	return strings.ToLower(Words[rand.IntN(len(Words))]) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user