Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
304
func
Boolean() bool {
305
nr := privateRand.Intn(2)
306
return
nr != 0
307
}
308
309
// Noun returns a random noun
310
func
Noun() string {
Callers
2
TestBool
Function · 0.85
ExampleRandomdata
Function · 0.85
Calls
1
Intn
Method · 0.80
Tested by
2
TestBool
Function · 0.68
ExampleRandomdata
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…