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

Method Bool

expr/random.go:141–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 return r.faker.Sentence(2, false)
140}
141func (r *FakerRandomizer) Bool() bool {
142 return r.rand.Int()%2 == 0
143}
144func (r *FakerRandomizer) Float32() float32 {
145 return r.rand.Float32()
146}

Callers

nothing calls this directly

Calls 1

IntMethod · 0.65

Tested by

no test coverage detected