random

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int

func Int(min, max int64) int64

Int 获取指定范围内的整数

func NewUUID

func NewUUID() string

NewUUID 全局唯一标识符,12byte 基于时间戳,主机信息,进程 ID 生成,每次调用值加 1,具有原子性 eg: NewUUID() -> 5cb840f90a5dcd71e779ba64 eg: NewUUID() -> 5cb840f90a5dcd71e779ba65

func String

func String(length int) string

String 获取指定长度的字符串

func Uint32

func Uint32() uint32

Uint32 获取随机数,类型为 uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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