Discover Packages
github.com/catsworld/random
package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Sep 29, 2018
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
README
README
¶
random
This repository holds a package includes some functions relative to random.
Download / Install
The easiest way to install is to run go get -u github.com/catsworld/random. You can also manually git clone the repository to $GOPATH/src/catsworld/random.
Expand ▾
Collapse ▴
Documentation
¶
Package random includes some functions relative to random.
Rand returns a random integer in [x..y], with the help of crypto/rand.
If x is larger than y, Rand will returns 0.
String returns a random string from the string slice.
If the slice is empty, String will returns "".
Source Files
¶
Click to show internal directories.
Click to hide internal directories.