random

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package random includes some functions relative to random.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigInt

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

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

func Int

func Int(x, y int) int

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

func Int64

func Int64(x, y int64) int64

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

func Slice

func Slice(s interface{}) interface{}

Slice returns a random element of a slice of empty interface variables. If s is not a slice, the function will return a nil pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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