random

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package random contains utilities for generating random things.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapitalisedAlphaNumeric

func CapitalisedAlphaNumeric(length int) string

CapitalisedAlphaNumeric returns a random string consisting of alphanumeric characters where all letters are capitalised. Expects a length greater than zero.

func Int

func Int(max int) int

Int generates a random integer between 0 and max. Panics if it fails to read the RNG.

func String

func String(length int) string

String returns a random string of a given length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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