random

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteSlice

func ByteSlice(n int) []byte

ByteSlice returns slice of random bytes

func Declare

func Declare(n int) string

Declare return fake equivalent of shell export output with 'declare -x'

func Element

func Element[T any](a []T) T

Element returns random element of a

func FileName

func FileName(n int) string

func Filepath

func Filepath(n int) string

Filepath returns random path up to max directory

func SemVer

func SemVer() string

SemVer returns random semver value

func Sentences

func Sentences(r []int) string

func Sha256

func Sha256() string

Sha256 returns random sha256 checksum

func Value

func Value(a []int) int

Value returns random value in range of [a[0],a[1]]

func Word

func Word() string

func Words

func Words(r []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