MCPcopy Create free account
hub / github.com/code-scan/Goal / RandInt64

Function RandInt64

Gsensor/ksubdomain/util.go:20–25  ·  view source on GitHub ↗
(min, max int64)

Source from the content-addressed store, hash-verified

18 return string(b)
19}
20func RandInt64(min, max int64) int64 {
21 if min >= max || min == 0 || max == 0 {
22 return max
23 }
24 return rand.Int63n(max-min) + min
25}
26
27func LinesInFile(fileName string) ([]string, error) {
28 result := []string{}

Callers 1

GetResultMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected