MCPcopy Create free account
hub / github.com/goadesign/goa / FakerRandomizer

Struct FakerRandomizer

expr/random.go:120–124  ·  view source on GitHub ↗

FakerRandomizer implements the Random interface, using the Faker library.

Source from the content-addressed store, hash-verified

118
119// FakerRandomizer implements the Random interface, using the Faker library.
120type FakerRandomizer struct {
121 Seed string
122 faker *faker.Faker
123 rand *rand.Rand
124}
125
126func (r *FakerRandomizer) ArrayLength() int {
127 return r.Int()%3 + 2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected