rand

package
v0.0.0-...-c39e8e5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: AGPL-3.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(n int) []byte

Bytes returns a byte slice of random bytes.

func Digits

func Digits(n int) string

Digits returns a string of n random digits.

func HexBytes

func HexBytes(n int) string

HexBytes returns the hex encoding of a random hex bytes

func Letters

func Letters(n int) string

Letters returns a random ID of n random case-sensitive letters. They might have lower case or upper case.

func LowerLetters

func LowerLetters(n int) string

LowerLetters returns a random ID of n random letters, lower-case only.

func New

func New() *mrand.Rand

New returns a new math/rand.Rand that is seeded with crypto rand.

Types

This section is empty.

Jump to

Keyboard shortcuts

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