random

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 6 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 Sentences

func Sentences(r []int) string

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