random

package
v1.1.50 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Uppercase    = []rune("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
	Lowercase    = []rune("abcdefghijklmnopqrstuvwxyz")
	Numbers      = []rune("0123456789")
	Alphanumeric = []rune(string(Uppercase) + string(Lowercase) + string(Numbers))
	CCM          = []rune(string(Alphanumeric) + "_-~")
)

Common values to be used when creating random strings

Functions

func RandomNRunes

func RandomNRunes(n int, runes []rune) string

RandomNRunes generates a string by choosing N runes at random from the runes list provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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