random

package
v0.0.0-...-3f8f567 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between

func Between(min int, max int) int

Between 生成随机数,在min和max之间

func Chars

func Chars(n int) string

String 生成随机n位字符串(包含数字或者字符)

func CharsPlus

func CharsPlus(n int) string

String 生成随机n位字符串(包含数字或者字符和特殊字符)

func Letters

func Letters(n int) string

String 生成随机n位字符串(只包含字符)

func LowerCases

func LowerCases(n int) string

String 生成随机n位字符串(只包含小写字符)

func Numbers

func Numbers(n int) string

String 生成随机n位字符串(只包含数字)

func Rand

func Rand(max int) int

Rand 生成随机数,大于0小于max

func UpperCases

func UpperCases(n int) string

String 生成随机n位字符串(只包含小写字符)

Types

This section is empty.

Jump to

Keyboard shortcuts

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