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

Function Boolean

random_data.go:304–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302}
303
304func Boolean() bool {
305 nr := privateRand.Intn(2)
306 return nr != 0
307}
308
309// Noun returns a random noun
310func Noun() string {

Callers 2

TestBoolFunction · 0.85
ExampleRandomdataFunction · 0.85

Calls 1

IntnMethod · 0.80

Tested by 2

TestBoolFunction · 0.68
ExampleRandomdataFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…