random

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

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

Go to latest
Published: Feb 3, 2016 License: MIT Imports: 8 Imported by: 1

README

go-random

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between

func Between(min, lessThan int) int

Returns a random int in the range [min, lessThan)

func Digits

func Digits(numDigits int) string

Returns a random number with numDigits digits

func UID

func UID(numChars int) (uid string, err error)

UID returns a base64-encoded random string. numChars must be a multiple of 4.

Types

This section is empty.

Jump to

Keyboard shortcuts

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