randomUtil

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomInt

func RandomInt(min, max int64) int64

RandomInt 指定范围内的随机数 @param min 最小数(包含) @param max 最大数(不包含) @return 指定范围内的随机数

func RandomLimitInt

func RandomLimitInt(limit int64) int64

RandomLimitInt 获得指定范围内的随机数 [0,limit) @param limit 限制随机数的范围,不包括这个数 @return 随机数

func RandomNumbers

func RandomNumbers(length int) string

RandomNumbers 只包含数字的随机字符串 @param length 随机字符串长度 @return 只包含数字的随机字符串

func RandomString

func RandomString(length int) string

RandomString 随机指定长度字符串(只包含数字和字符) @param length 随机字符串长度 @return 随机字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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