random

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 2 Imported by: 3

README

random

A package includes some functions relative to random.

Documentation

Overview

Package random includes some functions relative to random.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigInt added in v1.2.0

func BigInt(x, y *big.Int) *big.Int

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

func Int added in v1.1.0

func Int(x, y int) int

Int returns a random integer in [x..y].

func Int64 added in v1.2.0

func Int64(x, y int64) int64

Int64 returns a random int64 in [x..y].

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