random

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandAsciiStr

func RandAsciiStr() string

RandAsciiStr 随机字符串, 源: abcdefghijklmnopqrstuvwxyz

func RandAsciiStrCase

func RandAsciiStrCase() string

RandAsciiStrCase 随机字符串, 大小写敏感, 源: abcdefghijklmnopqrstuvwxyz + ABCDEFGHIJKLMNOPQRSTUVWXYZ

func RandAsciiStrN

func RandAsciiStrN(count int) string

RandAsciiStrN 随机字符串, 源: abcdefghijklmnopqrstuvwxyz

func RandAsciiStrNCase

func RandAsciiStrNCase(count int) string

RandAsciiStrNCase 随机字符串, 大小写敏感, 源: abcdefghijklmnopqrstuvwxyz + ABCDEFGHIJKLMNOPQRSTUVWXYZ

func RandInt

func RandInt(n int) int

RandInt 返回[0,n)的随机数

func RandStr

func RandStr() string

RandStr 随机字符串, 大小写敏感, 源: abcdefghijklmnopqrstuvwxyz + ABCDEFGHIJKLMNOPQRSTUVWXYZ + 01234567

func RandStrN

func RandStrN(count int) string

RandStrN 随机字符串, 大小写敏感, 源: abcdefghijklmnopqrstuvwxyz + ABCDEFGHIJKLMNOPQRSTUVWXYZ + 01234567

func Random

func Random() float64

Random 返回[0,1)的随机数

func SimpleRandInt

func SimpleRandInt() int

SimpleRandInt 返回[0,10)的随机数

Types

This section is empty.

Jump to

Keyboard shortcuts

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