rand

package
v0.0.0-...-8ad53de Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rand

type Rand interface {
	Int(max int) (int64, error)
}

Rand is a random number generator that supports different underlying rand implementations.

func NewRand

func NewRand(randType string) (Rand, error)

NewRand initializes a new random number generator with the specified rand implementation.

Jump to

Keyboard shortcuts

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