Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomElement ¶
GetRandomElement returns a random element from a given slice
func MaybeSleepMinMax ¶
func MaybeSleepMinMax(chance, totalChance, min, max int)
MaybeSleepMinMax sleeps for a random duration from 'min' to 'max' seconds with a chance of 'chance' / 'totalChance'
func Sleep ¶
func Sleep(duration int)
Sleep sleeps for a random duration from 0 to 'duration' seconds
func SleepMinMax ¶
func SleepMinMax(min, max int)
SleepMinMax sleeps for a random duration from 'min' to 'max' seconds
Types ¶
This section is empty.
]
(