extrand

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package extrand extend rand

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64 added in v0.1.6

func Float64(min, max float64) float64

Float64 随机min,max中的值

func Int added in v0.1.6

func Int(min, max int) int

Int 随机min,max中的值

func Int31 added in v0.1.6

func Int31(min, max int32) int32

Int31 随机min,max中的值

func Int63 added in v0.1.6

func Int63(min, max int64) int64

Int63 随机min,max中的值

func RandInt64

func RandInt64(length int) int64

RandInt64 rand int64 with give length

func RandLetter added in v0.1.6

func RandLetter(length int) string

RandLetter rand alpha with give length(只包含字母)

func RandString

func RandString(length int) string

RandString rand string with give length(包含字母与数字)

func RandSymbol added in v0.1.3

func RandSymbol(length int) string

RandSymbol rand symbol with give length(包含字母数字和特殊符号)

func Shuffle added in v0.1.6

func Shuffle(str string) string

Shuffle pseudo-randomizes the order of elements using the default Source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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