Documentation ¶ Index ¶ type R func Rand() *R func (r *R) Custom(l int, dir string) string func (r *R) Letters(l int) string func (r *R) Mixes(l int, dirEx string) string func (r *R) Num(l int) int func (r *R) Nums(l int) string func (r *R) Range(min, max int) string func (r *R) RangeNum(min, max int) int func (r *R) Strings(l int) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type R ¶ type R struct{} func Rand ¶ func Rand() *R Rand 随机0-max的整数或{a-z|A-Z}区间的字母,max必须>0 func (*R) Custom ¶ func (r *R) Custom(l int, dir string) string Custom 自定义 func (*R) Letters ¶ func (r *R) Letters(l int) string Letters 仅字母 func (*R) Mixes ¶ func (r *R) Mixes(l int, dirEx string) string Mixes 字母数字符号 func (*R) Num ¶ func (r *R) Num(l int) int Num 数字0-9 1个 func (*R) Nums ¶ func (r *R) Nums(l int) string Nums 数字0-9 func (*R) Range ¶ func (r *R) Range(min, max int) string Range 范围 func (*R) RangeNum ¶ func (r *R) RangeNum(min, max int) int RangeNum Range 范围数字 func (*R) Strings ¶ func (r *R) Strings(l int) string Strings 字母和符号 Source Files ¶ View all Source files random.go Click to show internal directories. Click to hide internal directories.