randutil

package module
v0.0.0-...-d78c068 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

README

randutil - Random number/string utilities for the Go language

This package contains assorted utility functions for creating random numbers and strings. I use this package quite a bit, especially when testing other projects. However I make no claims about the cryptographic security or other properties of the random(-ish?) numbers and strings it produces. Use at your own risk.

API Documentation

See GoDoc for automatically generated documentation.

Status

Build Status Travis Build Status

Documentation

Index

Constants

View Source
const (
	// Set of characters to use for generating random strings
	Alphabet     = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
	Numerals     = "1234567890"
	Alphanumeric = Alphabet + Numerals
	Ascii        = Alphanumeric + "~!@#$%^&*()-_+={}[]\\|<,>.?/\"';:`"
)

Variables

View Source
var MinMaxError = errors.New("Min cannot be greater than max.")

Functions

func IntRange

func IntRange(min, max int) int

IntRange returns a random integer in the range from min to max.

Types

This section is empty.

Jump to

Keyboard shortcuts

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