package
0.1.3
Repository: https://github.com/xwc1125/xwc1125-pkg.git
Documentation: pkg.go.dev

# Functions

B retrieves and returns random bytes of given length `n`.
D returns a random time.Duration between min and max: [min, max].
Digits returns a random string which contains only digits, and its length is `n`.
Intn returns an int number which is between 0 and max: [0, max).
Letters returns a random string which contains only letters, and its length is `n`.
Meet randomly calculate whether the given probability `num`/`total` is met.
MeetProb randomly calculate whether the given probability is met.
N returns a random int between min and max: [min, max].
Perm returns, as a slice of n int numbers, a pseudo-random permutation of the integers [0,n).
S returns a random string which contains digits and letters, and its length is `n`.
Str randomly picks and returns `n` count of chars from given string `s`.
Symbols returns a random string which contains only symbols, and its length is `n`.