random

package
v0.0.0-...-4d456dd Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RangeInt

func RangeInt(min, max int) int

func RangeIntInclude

func RangeIntInclude(include ...Slice) int

func Seed

func Seed(seed int64)

func String

func String(length ...int) string

func UUID

func UUID(length int, upper bool, digital bool, special string) string

随机生成UUID字符串 length 长度 upper 大写 digital 数字 special 特殊字符 - *

Types

type Slice

type Slice struct {
	Start int
	End   int
}

Jump to

Keyboard shortcuts

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