random

package module
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: MIT Imports: 2 Imported by: 3

README

= random
Kuro/Neko <https://github.com/catsworld[@catsworld]>

image:http://img.shields.io/badge/godoc-reference-5272B4.svg[GoDoc, link=https://godoc.org/github.com/catsworld/random]
image:https://img.shields.io/github/tag/catsworld/random.svg[tag, link=https://github.com/catsworld/random]
image:https://img.shields.io/circleci/project/github/catsworld/random.svg[CircleCI, link=https://circleci.com/gh/catsworld/random]
image:https://img.shields.io/codecov/c/github/catsworld/random.svg[Codecov, link=https://codecov.io/github/catsworld/random]
image:https://goreportcard.com/badge/github.com/catsworld/random[Go Report Card, link=https://goreportcard.com/report/github.com/catsworld/random]
image:https://img.shields.io/github/license/catsworld/random.svg[License, link=https://github.com/catsworld/random/blob/master/LICENSE]

A package includes some functions relative to random.

== Features
* Random a number in a range with `crypto/rand`.
* Random a string in a string slice.

== Install
[source,shell]
----
$ go get -u github.com/catsworld/random
----

== Example

== TODO

== License
https://github.com/catsworld/random/blob/master/LICENSE[MIT]

Documentation

Overview

Package random includes some functions relative to random.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rand

func Rand(x, y int64) int64

Rand returns a random integer in [x..y], with the help of crypto/rand.

func String

func String(ss []string) string

String returns a random string from the string slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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