Documentation ¶
Overview ¶
Package random provides a concurrency safe https://golang.org/pkg/math/rand/#Rand object.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomValueFromInterval ¶ added in v0.2200.2
func GetRandomValueFromInterval(randomizationFactor, random float64, currentInterval time.Duration) time.Duration
GetRandomValueFromInterval returns a random value from the following interval:
[currentInterval - randomizationFactor * currentInterval, currentInterval + randomizationFactor * currentInterval].
func NewConcurrencySafeSource ¶
NewConcurrencySafeSource creates a concurrency safe source.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.