Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExpDistributedInt ¶ added in v0.1.68
GetExpDistributedInt returns a exponentially distributed number in the interval [0, +math.MaxFloat64), rounded to the nearest int. Callers can adjust the rate of the function through the rate parameter. NOTE: this function uses the default Source from the math/rand package. This source is only seeded with a random value since go 1.20.
func GetHaversineDistance ¶
GetHaversineDistance finds the distance (in km) between two latitude/longitude pairs using the Haversine formula. For more details, see http://en.wikipedia.org/wiki/Haversine_formula.
func GetRandomInt ¶ added in v0.1.68
GetRandomInt returns a non-negative pseudo-random number in the interval [0, max). It returns 0 if max <= 0. NOTE: this function uses the default Source from the math/rand package. This source is only seeded with a random value since go 1.20.
Types ¶
This section is empty.