random

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 字母和符号

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL