rand

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LetterRunes = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")

LetterRunes contains a set of characters for generating random strings (a-z, A-Z)

Functions

func RandString

func RandString(length uint32) string

RandString returns a random string of the specified length consisting of Latin letters. The length of the string is determined by the length parameter.

func RandStringFromRunes

func RandStringFromRunes(length uint32, runes ...rune) string

RandStringFromRunes returns a random string of the specified length composed of the provided runes. If runes is empty, an empty string is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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