rand

package
v0.0.0-...-c6e4f4a Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CharsetAlphabet     = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
	CharsetNumeral      = "1234567890"
	CharsetHex          = "1234567890abcdef"
	CharsetAlphanumeric = CharsetAlphabet + CharsetNumeral
)

Variables

This section is empty.

Functions

func Alphabet

func Alphabet(n int) string

func Charset

func Charset(n int, charset string) string

func ChoiceInt

func ChoiceInt(choices []int) int

func ChoiceString

func ChoiceString(choices []string) string

func HexStr

func HexStr(n int) string

func IntRange

func IntRange(min, max int) int

func Intn

func Intn(n int) int

func NewCryptoSeed

func NewCryptoSeed() (int64, error)

func NewTimeSeededSource

func NewTimeSeededSource() int64

func NumeralStr

func NumeralStr(n int) string

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