MCPcopy 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
76func (r *pRand) Intn(n int) int {
77 r.mu.Lock()
78 defer r.mu.Unlock()
79 return r.pr.Intn(n)
80}
81
82func (r *pRand) Float64() float64 {
83 r.mu.Lock()

Callers 15

PostalCodeFunction · 0.80
LettersFunction · 0.80
DigitsFunction · 0.80
BoundedDigitsFunction · 0.80
randomFromFunction · 0.80
TitleFunction · 0.80
FirstNameFunction · 0.80
NumberFunction · 0.80
AlphanumericFunction · 0.80
BooleanFunction · 0.80
IpV4AddressFunction · 0.80
IpV6AddressFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected