random

package module
v1.0.0 Latest Latest
Warning

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

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

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.

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.

If x is larger than y, Rand will returns 0.

func String

func String(ss []string) string

String returns a random string from the string slice.

If the slice is empty, String will returns "".

Types

This section is empty.

Jump to

Keyboard shortcuts

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