package
1.1.0
Repository: https://github.com/nlpodyssey/spago.git
Documentation: pkg.go.dev

# Packages

# Functions

Float returns, as a T, a pseudo-random number in [0.0,1.0) from the default Source.
GetUniqueRandomIndices select n mutually exclusive indices, using the global random.
GetUniqueRandomInt generates n mutually exclusive integers up to max, using the default random source.
NewLockedRand creates a new LockedRand that implements all Rand functions that is safe for concurrent use.
ShuffleInPlace pseudo-randomizes the order of elements, modifying the given slice in-place.
WeightedChoice performs a random generation of the indices based of the probability distribution itself.

# Structs

LockedRand is an implementation of rand.Rand that is concurrency-safe.