MCPcopy Create free account
hub / github.com/Pallinder/go-randomdata / StringNumber

Function StringNumber

random_data.go:280–282  ·  view source on GitHub ↗

StringNumber returns a random number as a string

(numberPairs int, separator string)

Source from the content-addressed store, hash-verified

278
279// StringNumber returns a random number as a string
280func StringNumber(numberPairs int, separator string) string {
281 return StringNumberExt(numberPairs, separator, 2)
282}
283
284// StringSample returns a random string from a list of strings
285func StringSample(stringList ...string) string {

Callers 3

GenerateProfileFunction · 0.85
TestRandomStringDigitsFunction · 0.85
ExampleRandomdataFunction · 0.85

Calls 1

StringNumberExtFunction · 0.85

Tested by 2

TestRandomStringDigitsFunction · 0.68
ExampleRandomdataFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…