Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/expr-lang/expr
/ random
Function
random
test/gen/utils.go:33–35 ·
view source on GitHub ↗
(array []T)
Source
from the content-addressed store, hash-verified
31
}
32
33
func
random[T any](array []T) T {
34
return
array[rand.Intn(len(array))]
35
}
Callers
11
booleanNode
Function · 0.85
identifierNode
Function · 0.85
memberNode
Function · 0.85
unaryNode
Function · 0.85
binaryNode
Function · 0.85
methodNode
Function · 0.85
funcNode
Function · 0.85
builtinNode
Function · 0.85
predicateNode
Function · 0.85
pointerNode
Function · 0.85
variableNode
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…