package
0.38.0-preview.0
Repository: https://github.com/onflow/flow-go.git
Documentation: pkg.go.dev

# Functions

Samples picks randomly `m` elements out of `n` elements in a data structure and places them in random order at indices [0,m-1], the swapping being implemented in place.
Shuffle permutes a data structure in place based on the provided `swap` function.
Uint returns a random uint.
Uint32 returns a random uint32.
Uint32n returns a random uint32 strictly less than `n`.
Uint64 returns a random uint64.
Uint64n returns a random uint64 strictly less than `n`.
Uintn returns a random uint strictly less than `n`.