rands

package
v0.0.0-...-7647e70 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool() bool

Bool 生成真假随机值

func HexString

func HexString(n int) string

获取随机的一个16进制的字符串,即返回的字符串中只包含[0-9a-f]字符

func Int

func Int(min int, max int) int

随机获取一个Int数字

func Int64

func Int64() int64

随机获取一个Int64数字

func String

func String(n int) string

获取随机字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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