Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pallinder/go-randomdata
/ Intn
Method
Intn
random_data.go:76–80 ·
view source on GitHub ↗
(n int)
Source
from the content-addressed store, hash-verified
74
}
75
76
func
(r *pRand) Intn(n int) int {
77
r.mu.Lock()
78
defer
r.mu.Unlock()
79
return
r.pr.Intn(n)
80
}
81
82
func
(r *pRand) Float64() float64 {
83
r.mu.Lock()
Callers
15
PostalCode
Function · 0.80
Letters
Function · 0.80
Digits
Function · 0.80
BoundedDigits
Function · 0.80
randomFrom
Function · 0.80
Title
Function · 0.80
FirstName
Function · 0.80
Number
Function · 0.80
Alphanumeric
Function · 0.80
Boolean
Function · 0.80
IpV4Address
Function · 0.80
IpV6Address
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected