Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FisherYatesShuffle ¶ added in v1.0.127
FisherYatesShuffle will shuffle the provided indexes slice based on a provided randomizer
Types ¶
type ConcurrentSafeIntRandomizer ¶
type ConcurrentSafeIntRandomizer struct { }
ConcurrentSafeIntRandomizer implements dataRetriever.IntRandomizer and can be accessed in a concurrent manner
func (*ConcurrentSafeIntRandomizer) Intn ¶
func (csir *ConcurrentSafeIntRandomizer) Intn(n int) int
Intn returns an int in [0, n) interval
func (*ConcurrentSafeIntRandomizer) IsInterfaceNil ¶
func (csir *ConcurrentSafeIntRandomizer) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
Click to show internal directories.
Click to hide internal directories.