(r *rand.Rand, fullList string)
| 221 | } |
| 222 | |
| 223 | func randomElement(r *rand.Rand, fullList string) string { |
| 224 | wordList := strings.Split(fullList, "\n") |
| 225 | randomWordIndex := r.Int() % len(wordList) |
| 226 | |
| 227 | return wordList[randomWordIndex] |
| 228 | } |
no test coverage detected