Documentation ¶
Index ¶
- func RandDigits(n int) string
- func RandDigitsRange(rangeMin int, rangeMax int) string
- func RandHex(n int) string
- func RandHexRange(rangeMin int, rangeMax int) string
- func RandIntRange(rangeMin int, rangeMax int) int
- func RandLetters(n int) string
- func RandLettersNoBadChars(n int, badchars []rune) string
- func RandLettersRange(rangeMin int, rangeMax int) string
- func RandPositiveInt(rangeMax int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandDigits ¶
func RandDigitsRange ¶
RandDigitsRange generates a random numeric string of length [min,max).
func RandHexRange ¶
RandHexRange generates a random hex string of length [min,max).
func RandIntRange ¶ added in v1.0.6
RandIntRange generates an `int` between [min,max).
func RandLetters ¶
RandLetters generates a random alpha string of length n.
func RandLettersNoBadChars ¶ added in v1.0.12
RandLetters generates a random alpha string with no bad chars of length n. This will return an empty string if the caller badchars all "letters".
func RandLettersRange ¶
RandLettersRange generates a random alpha string of length [min,max).
func RandPositiveInt ¶ added in v1.0.6
RandPositiveInt generates a non-negative crypto-random number in the half-open interval [0,max).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.