MCPcopy Create free account
hub / github.com/cloudfoundry/cli / RandomTwoLetters

Method RandomTwoLetters

util/randomword/generator.go:216–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214}
215
216func (gen Generator) RandomTwoLetters() string {
217 var asciiLetterA = 97
218 letterOne := string(rune(gen.r.Intn(26) + asciiLetterA))
219 letterTwo := string(rune(gen.r.Intn(26) + asciiLetterA))
220 return letterOne + letterTwo
221}
222
223func randomElement(r *rand.Rand, fullList string) string {
224 wordList := strings.Split(fullList, "\n")

Callers 2

BabbleMethod · 0.95
generator_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected