package
0.5.49
Repository: https://github.com/pubgo/funk.git
Documentation: pkg.go.dev

# Functions

Base62 generates a random base62 string with length of n.
Base64 generates a random base64 string with length of n.
Bytes generates n random bytes.
Hex generates a random hex string with length of n e.g: 67aab2d956bd7cc621af22cfb169cba8.
Perm returns a random permutation of the range [0,n).
Probability 小于prob的概率, prob is in the range [0,1000).
Random return random string from string slice.
Read is a helper function that calls rr.Read on b.
Sampling 采样率, [rate] is in the range [0,100).
Shuffle pseudo-randomizes the order of elements.
String generates a random string using only letters provided in the letters parameter if user commit letters parameters, this function will use defLetters instead.
Uint32 returns pseudorandom uint32.
Uint32n returns pseudorandom uint32 in the range [0...maxN).