# README
random
Small and simple helper to generate "random" string.
Usage
Installation:
go get -u github.com/dmitrymomot/random
Use
import "github.com/dmitrymomot/random"
str := random.String(16)
log.Println(str)
Output:
Cb0ajMig6N7l9Fzf
Licensed under Apache License 2.0
# Packages
No description provided by the author
# Functions
GetRandomMapItemWithPrecent returns random item from a map where values are drop percentages.
GetRandomMapItemWithProbabilities returns random item from a map where values are probabilities.
GetRandomStructWithProbabilities returns random item from slice of structures with given probabilities.
GetRandomWithProbabilities returns random item from slice of any data type with given probalities.
New Random structure.
String is a helper to get random string.
# Constants
Charsets.
Charsets.
Charsets.
Charsets.
Charsets.
Charsets.
Charsets.