rand

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FastInt

func FastInt() int

func FastIntn

func FastIntn(n int) int

func FastPositiveIntn

func FastPositiveIntn(n int) int

func ShortID

func ShortID() string

ShortID returns a 22-character alphanumeric unique ID. Uses the base62 alphabet [0-9A-Za-z] — no hyphens, URL-safe.

func Str

func Str(strSize int) string

func StrAlpha

func StrAlpha(strSize int) string

func StrAlphaNum

func StrAlphaNum(strSize int) string

func StrFromDict

func StrFromDict(strSize int, dict string) string

func StrNum

func StrNum(strSize int) string

func StrUrlSafe

func StrUrlSafe(strSize int) string

func UUID

func UUID() string

UUID generated

Types

This section is empty.

Jump to

Keyboard shortcuts

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