Returns a random part of a slice
(source []string)
| 105 | |
| 106 | // Returns a random part of a slice |
| 107 | func randomFrom(source []string) string { |
| 108 | return source[privateRand.Intn(len(source))] |
| 109 | } |
| 110 | |
| 111 | // Title returns a random title, gender decides the gender of the name |
| 112 | func Title(gender int) string { |
no test coverage detected
searching dependent graphs…